I need a vbs script that will clear inheritance for all subfolders and files under a specified parent folder. Then go back and re-allow inheritance for those same subfolders and files.
Some background information on the problem I am having can be found in my previous question here:
The only solution is to uncheck allow inheritance, then click apply. Then check allow inheritance again and then apply again. Then all the inherited permissions from the parent folders will be applied.
Now my problem is that there thousands of folders that need this to be done.
According to this article, http://support.microsoft.com/kb/320246/en-us
, a vbs script can be written to automate this process.
Can anyone help me with this script?