Finding folders that don’t inherit permissions from a parent

I recently needed to figure out which subfolders were not inheriting their security permissions from their parent folder.  When you want different user permissions on a folder for whatever reason you need to break the connection to the parent. Unfortunately it can then be hard to remember what subfolders you have altered.  Especially if there are many subfolders and sub-subfolders etc.

Parent Folder

Checking each one manually is cumbersome and prone to error.  A quick Google search led me to this link:

http://gallery.technet.microsoft.com/scriptcenter/39f4cc07-7781-4bbd-afe8-fc4d7f75d949

You just need to copy the script into a *.vbs file and run it from the command prompt (possibly will work when run from explorer).  You’ll want to edit the two constants at the top of the file to reflect your file/folder layout.

Also if you’re like me and think that the file doesn’t work then you probably need to wait longer.  The command prompt returns immediately but it is still running.  You will eventually receive a message box with “Done!” in it.

Enjoy!