Jump to content

Change bulk folder permissions, carefully!


Recommended Posts

Posted

I've got 215 folders, all these folders have "Domain admins, Specific user, account operators" with full permission to them...

 

The folder above has just "Domain admins, IT Teachers security group"

 

I need to force the 215 folders to take the IT Teachers group and inherit that permission without resetting or changing ANYTHING else, i know this is easily done as i've done it before but can't for the life of me remember how, any help?

 

No doubt setacl can probably do this but i don't know the commands to achieve this

  • 5 weeks later...
Posted (edited)

Open a command prompt and go to the directory where the folders are located (map a drive if you need to) and run the following command:

 

for /D %d IN (*) DO icacls "%d" /inheritance:e

 

Will apply to all folders in the current path, change * if you want to narrow it down.

 

Edit: Assumes windows 7/2008

Edited by ChrisMiles

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...