Jump to content

Recommended Posts

Posted

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.


Posted

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

Posted

C:\>cacls /?

Displays or modifies access control lists (ACLs) of files

CACLS 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:\>_

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...