Before we apply any sort of folder permissions, we should save the actually applied permissions. Here are the commands to use and just in case anything goes wrong, you re-establish the previous permission.
In your home, this can be important if more than one person is using the PC.
In a work environment, this is crucial to do, as if anything goes wrong, you might be in big trouble.
In case of the file name, I would use the date inside the filename, so you know when it was modified. I also would use some sort of identification to know where it was applied. You might leave it in the top folder, hidden from users. You should not pollute though. Probably it should be deleted, if you assured that everything is cool !
Save Folder Permissions: icacls "D:\Path\To\Folder" /save perms.txt
Save Folder Permissions Recursively: icacls "D:\Path\To\Folder" /save perms.txt /T # for recursive
Restore Folder Permissions: icacls "D:\" /restore perms-john.txt
Verifiy folder permissions:
icacls "D:\Path\To\Folder"
No comments:
Post a Comment