Question : Folder permissions and re-applying them

I'm running across some scenarious where certain folders on our server have security 'tweaked' on some of the child folders.  
For each of our shares, we assign perms to the parent, and push that down the tree.  So, whatever is changing the child at some point, is causing us difficulty.
I'm looking at a way of automating the correction of this, hopefully using the command line tool cacls.

If I'm able to grab the output of cacls against the parent share, how can I re-push that down the tree using cacls?
I think I can accomplish the account and permission, but having trouble with the (OI)(CI), etc, as well as 'special' permissions...

Example folder:
F:\testing BUILTIN\Administrators:(OI)(CI)F
               NT AUTHORITY\SYSTEM:(OI)(CI)F
               BUILTIN\Administrators:F
               CREATOR OWNER:(OI)(CI)(IO)F
               BUILTIN\Users:(OI)(CI)R
               BUILTIN\Users:(CI)(special access:)
                                 FILE_APPEND_DATA

               BUILTIN\Users:(CI)(special access:)
                                 FILE_WRITE_DATA

Answer : Folder permissions and re-applying them

If you are in a mix mode environment with XP and Win7 using roaming profiles you are going to have some issues arise like this. Windows 7 stores the profiles in different directories and also has a different naming convention for the profile folders (v2).

Because you are in a mix mode environment you are going to have to manage 2 profiles for each user (1 for XP and 1 for Win7).

What I would suggest is using the USMT (User State Migration Tool). Take a look at the following link to get more information on the USMT.
http://technet.microsoft.com/en-us/windows/dd671583.aspx

Hope this helps~!
Random Solutions  
 
programming4us programming4us