tguy Posted February 25, 2005 Posted February 25, 2005 How do I create a share during an unattended install and set its permissions for the Administrators group and Everyone group?I have seen rmtshare.exe but am not sure if I can use it during an unattended install. I have also seen vbScript for creating shares but not one that also sets permissions on the share itself.Any help is created.
brian873 Posted February 25, 2005 Posted February 25, 2005 In the server admini pack there is a utility called CACLS.exe (i think thats the spelling) annd this allows you to set share permissions.hail hail
quicksilk Posted February 25, 2005 Posted February 25, 2005 C:\>cacls /?Displays or modifies access control lists (ACLs) of filesCACLS filename [/T] [/E] [/C] [/G user:perm] [/R user [...]] [/P user:perm [...]] [/D user [...]] filename Displays ACLs. /T Changes ACLs of specified files in the current directory and all subdirectories. /E Edit ACL instead of replacing it. /C Continue on access denied errors. /G user:perm Grant specified user access rights. Perm can be: R Read W Write C Change (write) F Full control /R user Revoke specified user's access rights (only valid with /E). /P user:perm Replace specified user's access rights. Perm can be: N None R Read W Write C Change (write) F Full control /D user Deny specified user access.Wildcards can be used to specify more that one file in a command.You can specify more than one user in a command.C:\>_
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now