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.
cdavidson0724Asked:
Who is Participating?
 
Debsyl99Connect With a Mentor Commented:
Hi,
Have you looked at:
How to use Xcacls.vbs to modify NTFS permissions
http://support.microsoft.com/?id=825751
and
How can I modify share permissions from the command line?
http://www.windowsitpro.com/Article/ArticleID/14459/14459.html
RMTShare download
ftp://ftp.microsoft.com/bussys/winnt/winnt-public/reskit/nt40/i386/RMTSHAR.EXE

Deb :))
0
 
oBdACommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.