Operating System - Microsoft
cancel
Showing results for 
Search instead for 
Did you mean: 

Command line for adding users to existing share

 
Regular Advisor

Command line for adding users to existing share

Does anyone know of any commands that can be executed from the command line to add users into shares permissions. The OS is windows 2008 R2.

Thanks in advanced.
3 REPLIES 3
Honored Contributor

Re: Command line for adding users to existing share

Honored Contributor

Re: Command line for adding users to existing share

Give a group the permissions, then you can use the "net" commands to add users to the group.

net group my.share.group userid /add /domain

Jon
"Do or do not. There is no try!" - Yoda
Regular Advisor

Re: Command line for adding users to existing share

Thanks everyone for your answers subinacl did work in our case