Securing share level permissions from the command line

Posted on 2006-06-02
Last Modified: 2008-01-09
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.
Question by:cdavidson0724
    LVL 20

    Accepted Solution

    Have you looked at:
    How to use Xcacls.vbs to modify NTFS permissions
    How can I modify share permissions from the command line?
    RMTShare download

    Deb :))
    LVL 82

    Expert Comment

    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

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
    This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now