Link to home
Start Free TrialLog in
Avatar of soffcec
soffcecFlag for Iceland

asked on

Replacing security with icacls

I want to remove all security on one drive or folder and all what is in it and the put new owner on it who have full rights to the drive/folder

I need an example of how this is done.
ASKER CERTIFIED SOLUTION
Avatar of ZabagaR
ZabagaR
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of soffcec

ASKER

C:\>icacls "c:\new" /setowner administrators /T
c:\new: Access is denied.
Successfully processed 0 files; Failed processing 1 files
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of soffcec

ASKER

I was not logged in as administrator. All is OK now.