Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Windows - Resetting folder/file permissions - Generic fix for permission denied errors in Windows Explorer

Resetting folder/file permissions


  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.

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