Set or unset inheritance

  • Thread starter Thread starter Guest
  • Start date Start date
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!
 
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).
 
Back
Top