I wanted to make some changes to some permissions on mass today but decided it would be prudent to backup the permissions first.
So I used icals, to do this I first ran CMD as admin, then mapped the share drive with “Net Use“.
Why didn’t I do this on the server hosting the files? UAC gets in the way and is a pain the bum.
To backup the permissions:
/t – Performs the operation on all specified files in the current directory and its subdirectories.
/c – Continues the operation despite any file errors. Error messages will still be displayed.
icacls x:\ /save c:\temp\permissions.txt /t /c
Then to restore:
icacls y:\test /restore c:\temp\permissions.txt