Creates, deletes, and displays shared resources.
net share [sharename] net share [sharename=drive:path [/users:number | /unlimited] [/remark:"text"] [/cache: [manual | automatic | no]] net share [sharename [/users:number | unlimited] [/remark:"text"] "] [/cache: [manual | automatic | no]] net share [[sharename | drive:path] /delete]
Parameters | |
---|---|
| |
Parameter | Purpose |
| |
None | Displays information about all resources that are currently shared on the computer. |
sharename | Specifies the name assigned to the shared resource. |
drive:path | Specifies the absolute path of the folder to be shared. |
/users:number | Limits the maximum number of users who can simultaneously access the share. |
/unlimited | Allows unlimited simultaneous access to the share. |
/remark:“text” | Adds a comment to the shared resource. |
/cache:automatic | Enables offline cache and automatic reintegration. |
/cache:manual | Enables offline cache with manual reintegration. |
/cache:no | Advises that offline cache is not recommended. |
/delete | Terminates the sharing of a resource. |