Looks like you are right, icacls.exe will do the trick.

icacls User1\* /reset /t /c

... will reset the entire subdirectory tree underneath the User1 folder.

However, since i have thousands of these folders to do, is there a way to
automatically script having it run 

icacls User1\* /reset /t /c
icacls User2\* /reset /t /c
icacls User3\* /reset /t /c
icacls User4\* /reset /t /c , etc...

One after the other?  Can this be achieved using the FOR command in from a
batch?  My days of remembering context for the FOR command is long gone.

J

Original Message:
-----------------
From: Michael B. Smith [email protected]
Date: Tue, 16 Mar 2010 18:23:47 +0000
To: [email protected]
Subject: RE: propogating permissions to subfolders


Xcacls will do it (although depending on what OS you are running you might
want to download the update from Microsoft downloads).

However, icacls has an easier syntax (which is less powerful but should
meet your needs in this case). Take a look at it.

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com


-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Tuesday, March 16, 2010 1:49 PM
To: NT System Admin Issues
Subject: propogating permissions to subfolders

I think xcalcs.exe might do what I want, but I can't figure out the proper
format.

My directory structure is as follows:

-Volume
--Home
---User1
---User2
---User3
---User4
etc.

At the User1, User2, folder permissions are set the way we want.  Domain
admins have full control, user has modify, and the helpdesk group has read
permissions.

However, the subfolders underneath each user folder are NOT all set to
"inherit" from the parent (for one reason or another).

I want to FORCE the permissions from the User1 folder to ALL the subfolders
under User1, and FORCE the permissions on the User2 folder to ALL the
subfolders under User2, etc.

I can do this from the GUI by selecting User1 folder and enabling the
"Replace permission entries...".  However, I want to automate this.

How can I FORCE the "Allow inheritable permissions...." checkbox to be
enabled on all user subfolders and FORCE the "Replace permission
entries..." checkbox to be enabled on ALL the subfolders underneath my
User1, User2, User3, etc. folders?

I think xcalcs should do it, but, I'm confused how exactly...

Thanks.



--------------------------------------------------------------------
mail2web.com - What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~
<http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~


--------------------------------------------------------------------
mail2web.com – Enhanced email for the mobile individual based on Microsoft®
Exchange - http://link.mail2web.com/Personal/EnhancedEmail



~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to