Remove permission inheritance from hundreds of subfolders

AJ524
AJ524 used Ask the Experts™
on
Hello!

I have a folder full of hundreds of sub folders.  The parent folder has one set of permissions that we would like to keep and then we would like to customize the sub folder permissions as needed over time.  In order to arrange for this, I need to break inheritance for all of the sub folders under the parent.  Going into the advanced permissions setting on each sub folder is extremely time intensive and inefficient.  Looking for a convenient way to batch this or a command that will allow me to handle this much more efficiently.  Any suggestions?

Windows 2008 R2 file server, Windows 7 Pro clients.  Thanks!!

Andrew
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2012
Commented:
You can use Icacls

http://technet.microsoft.com/en-us/library/cc753525(v=ws.10).aspx

/inheritance:e|d|r
        e - enables inheritance
        d - disables inheritance and copy the ACEs
        r - remove all inherited ACEs

Author

Commented:
Right you are sir!

This command did it:
C:\Users\admin> icacls q:\parent\*.* /inheritence:d

Many thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial