How to list all shares? How to cmdline remove GRANT for everyone ?


  1. Posts : 244
    win7pro 64bit
       #1

    How to list all shares? How to cmdline remove GRANT for everyone ?


    To create a folder share and grant full permissions to user karl I can write on cmdline:

    net share "myshare123"="D:\tool" /GRANT:karl,FULL

    ok, it works.

    But what about the other way:

    Is there a way to generate all the full "net share" commands for ALL currently existing folder shares?
    I don't want to enter manually the command for (changing) 30 folder shares....

    What is the opposite to the parameter /GRANT:karl,FULL?
    In other words: how do I remove all existing permissions for e.g. "Everyone"?

    Peter
      My Computer


  2. Posts : 3,788
    win 8 32 bit
       #2

    Remove everyone and its dead as even admin is a member of everyone so you would lock yourself out. You have to add users before you denies. There are 2 permissions shares then NTFS kicks in setting NTFS is more effective than shares
      My Computer


  3. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #3

    The opposite of GRANT would be REVOKE. The NET SHARE command does not have a REVOKE switch. Nearest option would be to delete the share all together.
      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 14:09.
Find Us