The Windows 10 command line above was kindly suggested to me today, so here it is. The "(OI)" and "(CI)" parameters also add recursion, applying these changes to sub-objects created subsequently. files and subfolders), as well as the folder itself. The "/T" parameter adds recursion, applying these changes to all current sub-objects in the specified directory (i.e. the permission created) makes this a grant of FULL control. The option "/grant" creates a new ALLOW setting, an explicit permission that replaces (":r") any and all explicit ALLOW settings that may exist. This is only a precaution, as there is often no DENY setting present, but better safe than sorry. The option "/remove:d" deletes any explicit DENY settings that may exist, as those override explicit ALLOW settings: a necessary preliminary to creating a new ALLOW setting. Specifying the user "Everyone" sets the widest possible permission, as it includes every possible user. The command is applied to the specified directory. The following (might be) a perfect solution for Windows 7 if you are locked-out of a folder by corrupted permission settings: icacls "c:\folder" /remove:d /grant:r Everyone:(OI)(CI)F /Tįor Windows 10 the user/SID must be specified after the /remove:d option: icacls "c:\folder" /remove:d Everyone /grant:r Everyone:(OI)(CI)F /T Corrupt Permissions: Regaining access to a folder and its sub-objectsĪlthough most of the answers posted in reply to the question have some merit, IMHO none of them give a complete solution.
0 Comments
Leave a Reply. |