Link to home
Start Free TrialLog in
Avatar of cdavidson0724
cdavidson0724

asked on

Securing share level permissions from the command line

I am looking for a way to create a share from a batch file and then set share level permissions also from the batch file.  Creting the share is easy enough with net share, but I have not yet found a way to set the share permissions from the command line.  Anyone have any ideas?  Thanks in advance.
ASKER CERTIFIED SOLUTION
Avatar of Debsyl99
Debsyl99

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of oBdA
oBdA

Since this is the Server 2003 section, you can just use "net share" and do it in one go:
net share Share=C:\Some\Folder /grant:User=Full