How to share on cmdline the folder D:\aaa\bbb for User 123 ?


  1. Posts : 244
    win7pro 64bit
       #1

    How to share on cmdline the folder D:\aaa\bbb for User 123 ?


    I am seaching for a way to assign sharing permissions FROM COMMANDLINE
    for a particular user with particular permission under Win7 (!). Something like

    defineshare -dir=D:\aaa\bbb -user=myuser123 -perm="full access"

    As I learned so far there must be built-in or additional prgm like

    setowner
    setacl
    subinacl
    cacls

    Which of these cmds do I need for mentioned plan?

    How would the cmdline look like in detail?

    Peter
      My Computer


  2. Posts : 966
    Windows 7 Ultimate 64-bit
       #2

    Peter,

    I would try typing "net share /?" and you should get all the answers and "flags" you will need. I've never done it this way ,personally, so I can't speak to the difficulty level.

      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:45.
Find Us