net share
CautionCreate/list shares
net share
Lists/creates local shares — remember share permissions stack with NTFS ACLs.
Examples
net share logs=D:\logs /grant:everyone,READCreate a read-only share
Syntax
net share [name=path [/grant:user,perm]]
Before you run it
Shares go live instantly — design ACLs first.
Related commands
- net viewList network shares
- icaclsView/edit NTFS ACLs
- Get-SmbShareList/create SMB shares
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store