I am attempting to use icacls for the first time. I have not been successful so far. But maybe I am doing something wrong.
Here is what I want to accomplish:
1. store current user permissions for existing directory structure so they can be saved and used to retsore permissions if they become corrput or changed incorrectly.
I want to run this on either Windows 7 Enterprise or Windows Server 2008 R2.
I have admins rights on machines and I am running icalcs with admin rights.
Here is intstruction i am using to create the saved file:
A. From command line (with admin rights)
i change to the directory where I want to store the output file
(from same location I then key below command)
icacls c:\directorynameA\* /save filename /T
This seems to work, as the output file is created successfully.
Then I access the main directory , directorynameA, and I remove a user.
Now I want to run the restore to see if it restores the user I just removed, with the correct permissions.
B. From same command line (with admin rights), and same location
where saved restore file exists, I key
icacls c:\directory /restore filename /T
I receive a prompt that the command was successful, failed processing 0 files.
But when I check the direcotry I find the user I removed has not been restored.
Am I doing something wrong or missing a step?