Operating System - Microsoft

Re: Command line for adding users to existing share

 
Eric Sabo_1
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
Phil.Howell
Honored Contributor

Re: Command line for adding users to existing share

Jon Finley
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
Eric Sabo_1
Regular Advisor

Re: Command line for adding users to existing share

Thanks everyone for your answers subinacl did work in our case