syntax for creating rights for hundreds of folders using xcacls
Posted on 2009-07-16
I have several hundred directories on a Windows 2003 server that I need to set special permissions on. I used a batch file to create the folders but need an automated way to set the permissions. I'm inheriting what I can from the parent but each folder will have different user permissions. I manually set one up and ran an xcacls query. The result follows:
z:\archive\jdoe DOMAIN\jdoe:(OI)(CI)(special access:)
Is there a way to use xcacls to set the permissions on the other directories based on this user's permissions listed above? I'm not tied to xcacls but would prefer not to purchase a 3rd party solution. Thanks in advance for your help.