Name
net share
Synopsis
Manage shared resources.
Syntax
net sharesharename
net sharesharename
=drive
:path
[/users:number
| /unlimited] [/remark:"text
"] [/cache:Manual | Automatic | No] net sharesharename
[/users:number
| /unlimited] [/remark:"text
"] [/cache:Manual | Automatic | No] net share {sharename
|devicename
| drive:path} /delete
Options
-
none
A list of information about all shares on the server
-
sharename
The name of the share (may differ from actual name of folder or printer shared)
-
drive:path
Absolute path of a folder to share or unshare
-
/users:
number
Maximum number of users who can simultaneously connect to the share
-
/unlimited
No limit to number of users who can simultaneously connect to the share
-
/remark:"
text
"
Description of share
-
/delete
Used to unshare (stop sharing) the share
-
/cache
Undocumented option for configuring share caching for offline folders (new to Windows 2000—see Section later in this article)
Examples
List all shared resources on the local machine:
net share
Share name Resource Remark --------------------------------------------------------- C$ C:\ Default share IPC$ Remote IPC print$ C:\WINNT\System32\ Printer Drivers spool\drivers H$ H:\ Default share ADMIN$ C:\WINNT Remote Admin G$ G:\ Default share F$ F:\ Default share E$ E:\ Default share CertConfig C:\CAConfig Certificate Services configuration CertEnroll C:\WINNT\System32\ Certificate Services share CertSrv\CertEnroll NETLOGON C:\WINNT\SYSVOL\sysvol\ Logon server share mtitcanada.com\SCRIPTS ...
Get Windows 2000 Administration in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.