Skip to content

Instantly share code, notes, and snippets.

@groovenectar
Last active November 22, 2016 22:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save groovenectar/7f3a4471555d12b722211d5d94664d0b to your computer and use it in GitHub Desktop.
Save groovenectar/7f3a4471555d12b722211d5d94664d0b to your computer and use it in GitHub Desktop.
Windows - Resetting folder/file permissions - Generic fix for permission denied errors in Windows Explorer

Resetting folder/file permissions

From: https://blogs.msdn.microsoft.com/astebner/2005/08/20/how-to-manually-reset-folder-and-file-permissions-in-windows-explorer/

  1. Launch an instance of Windows Explorer (you may run explorer.exe as Administrator if necessary.

  2. Navigate to the parent of the folder that you want to reset permissions for

  3. Right-click on the folder and choose Sharing and Security…

  4. Click on the Security tab

  5. Click the Advanced button

  6. Set the permissions you want – typically you will want to allow Administrators, System, and Creator Owner to have full control

  7. Check the box labeled Replace permission entries on all child objects with entries shown here that apply to child objects

  8. Click OK

  9. Click Yes in the dialog box that appears asking if you are sure

  10. Wait while Windows recursively applies the specified permissions to all sub-folders and files

Also note that there is a tool named subinacl.exe that can be used to automate the process of resetting folder, file and registry permissions so that you don’t have to use the set of steps listed above.

https://www.microsoft.com/en-us/download/details.aspx?id=23510

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment