Set or unset inheritance

G

Guest

Hi,

I've got a folder which has over 100 subfolders, all of which are currently
inheriting their permissions. Is there any way to switch off that inheritance
apart from going into the properties of each one and doing it manually.

Thanks for your help!
 
R

Roger Abell [MVP]

Since removing inheritance does not itself mean granting (copying)
the existing inherited permissions (making the copy explicit on that
folder/file) - something done in the UI as a separate action, you
really need a way to block inheritance and also set the new grants
on each of those 100 folders.

You probably should look into taking a dir list that names the
full path of the folders to have this change, and then pipe that
into a repeated execution of xcacls.vbs which IIRC can control
the inheritance at the same time as setting the new grants (do
not use the /e option so that the execution replaces the ACL
instead of editing/modifying it).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top