Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • Last Modified:

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.
0
cdavidson0724
Asked:
cdavidson0724
1 Solution
 
Debsyl99Commented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now