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

pstein

New member
Member
VIP
Local time
3:40 AM
Messages
244
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 My Computer

At a glance

win7pro 64bit
Computer type
PC/Desktop
OS
win7pro 64bit
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 My Computer

At a glance

win 8 32 bit
Computer type
PC/Desktop
OS
win 8 32 bit
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 My Computer

At a glance

Windows 7 x64, Vista x64, 8.1 smartphoneIntel E8400 65W 64-bitDDR2 2 x 2GB, 1GB x 2XFX Radeon HD5750
Computer type
PC/Desktop
OS
Windows 7 x64, Vista x64, 8.1 smartphone
CPU
Intel E8400 65W 64-bit
Motherboard
Gigabyte EP45-UD3LR
Memory
DDR2 2 x 2GB, 1GB x 2
Graphics Card(s)
XFX Radeon HD5750
Sound Card
AMD High Definition Audio; Realtek High Definition Audio
Monitor(s) Displays
iiyama prolite X2377HDS
Screen Resolution
1920 x 1080
Hard Drives
500GB 7200 rpm Seagate ST3500413AS 16MB, 500GB 5400 rpm Toshiba MQ02ABF050H 32MB, 200GB 7200 rpm Seagate ST3200820AS 8MB, 2TB 7200 rpm Western Digital WD20EZRX 64MB
PSU
Enermax Liberty Modular
Case
Antec P193 Midi Tower
Keyboard
Mionix ZIBAL 60
Mouse
Razer USB 2.0 Diamondback Mouse or Huion Graphics Tablet
Browser
Internet Explorer, Lunascape, Firefox, Opera, Avast Safezone
Back
Top