Displays information about network connections and connects a computer to network resources.
net use [devicename | *] [\\computername\sharename[\volume]] [password | *]] [/user:[domainname\]username] [/user:[dotteddomainname\]username] [/user:[username@dotteddomainname] [.savecred] [/smartcard] [[/delete | /persistent:[yes | no]]] net use devicename [/home[password | *]] [/delete:{yes | no}] net use [/persistent:{yes | no}]
| Parameters | |
|---|---|
| | |
| Parameter | Purpose |
| | |
| None | Displays a list of network connections. |
| [devicename] | Assigns a name to a new connection or specifies a device that is to be disconnected. For disk drives, use the D: through Z:, and for printers, use LPT1: through LPT3:. |
| Parameter | Purpose |
|---|---|
| | |
| [\\computername\sharename] | Specifies the name of the network computer and its shared resource. |
| [\volume] | Specifies a server with a NetWare volume. |
| [password] | Specifies a password required to access the resource. |
| [*] | Specifies that you want to be prompted for the password. |
| [/user] | Specifies a different username to be used when making the connection. |
| [domainname] | Allows you to specify another domain. |
| [username] | Specifies the username to use when logging on. |
| [dotteddomainname] | The fully qualified DNS domain name. |
| [/delete] | Terminates a network connection. |
| [/persistent] | Allows you to define persistent connections that span system restarts. |
| [yes] | Restores the connection at next logon. |
| [no] | Doesn't restore the connection at next logon. |