Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to list all shares? How to cmdline remove GRANT for everyone ?

25 Feb 2020   #1
pstein

win7pro 64bit
 
 
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 System SpecsSystem Spec
.
25 Feb 2020   #2
samuria

win 8 32 bit
 
 

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 System SpecsSystem Spec
25 Feb 2020   #3
iko22

Windows 7 x64, Vista x64, 8.1 smartphone
 
 

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 System SpecsSystem Spec
.

Reply

Thread Tools




Similar help and support threads
Thread Forum
Remove SD CARD in the Safely Remove Hardware list
I have a laptop with 256 SSD. And it is small for me. What I did is I bought an SDCard with 128Gig and use it as my extra drive. It works fine and fast. What I want to do next is to make it permanent or set it as a non-removable drive not prevent myself or anyone to unmount it. How can I remove...
Hardware & Devices
Windows says it won't grant access permission, but it does grant.
I tried to take the following steps to get the "full control" permission on a "System Volume Information" folder for a user account I had created. right-click on the folder -> Properties -> Security tab -> Edit -> the "Permissions for <object>" dialog appears -> Add -> the "Select Users or...
General Discussion
How to hide or remove $ shares
I have a Patriot Box Office media player that I use to watch movies from my Win7 Premium pc. To be able to see the movies on the pc I went to drive properties > Sharing > Advanced Sharing > Checked the "share this folder" box. Opened permissions and gave everyone Read permissions. Then Opened...
Network & Sharing
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 ...
Network & Sharing
Can I remove an item from safely remove hardware list?
Hi all, In the safely remove hardware menu (from clicking the icon in the task bar) I have both my internal sata hard drives listed. I'll never want to remove these so is there a way to remove them from the list? I'm guessing it might require some registry editing but I've no idea where to...
Hardware & Devices


Our Sites

Site Links

About Us

Find 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 10:16.
Twitter Facebook