Quote:
> I have written a script that will go into a users AD account and add a drive
> letter and path for their Home folder. This works great... it creates the
> folder on the server using the sAMAccountName etc.
> However, by doing this via a script the NTFS permissions are not
> automatically set. Therefore I would like to change the permissions on each
> folder while I am in the loop that creates it.
> How do I do this? I haven't worked with NTFS permissions yet via a
> vbscript?
Hi
I guess I would have shelled out and used a command line based util for this.
Cacls or xcacls (from the resource kit) or maybe SETACL at
http://www.helge.mynetcologne.de/setacl/ , a nice freeware app that adds a lot
to cacls and xcacls.
SetACL can set permissions on:
Local or remote directories
Local or remote files
Local or remote printers
Local or remote registry keys
Local or remote Win32 services
Local or remote network shares
--
torgeir