Popular Examples:
NET USE G: \\computername\folder
NET USE L: /delete /y
Connects a computer to or disconnects a computer from a shared resource, or displays information about computer connections. The command also controls persistent net connections. Used without parameters, net use retrieves a list of network connections.
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}]
DeviceName : Assigns a name to connect to the resource or specifies the device to be disconnected. There are two kinds of device names: disk drives (that is, D: through Z:) and printers (that is, LPT1: through LPT3:). Type an asterisk (*) instead of a specific device name to assign the next available device name.
\\ComputerName\ShareName : Specifies the name of the server and the shared resource. If ComputerName contains spaces, use quotation marks around the entire computer name from the double backslash (\\) to the end of the computer name (for example, "\\Computer Name\Share Name"). The computer name can be from 1 to 15 characters long.
\volume : Specifies a NetWare volume on the server. You must have Client Service for NetWare installed and running to connect to NetWare servers.
Password : Specifies the password needed to access the shared resource. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.
/user : Specifies a different user name with which the connection is made.
DomainName : Specifies another domain. If you omit DomainName, net use uses the current logged on domain.
UserName : Specifies the user name with which to log on.
DottedDomainName : Specifies the fully-qualified domain name for the domain where the user account exists.
/savecred : Stores the provided credentials for reuse.
/smartcard : Specifies the network connection is to use the credentials on a smart card. If multiple smart cards are available, you are asked to specify the credential.
/delete : Cancels the specified network connection. If you specify the connection with an asterisk (*), all network connections are canceled.
Delete Maped drive silently: net use x: /delete /y - these deletes maped drive silently
/persistent:{yes | no} : Controls the use of persistent network connections. The default is the setting used last. Deviceless connections are not persistent. Yes saves all connections as they are made, and restores them at next logon. No does not save the connection being made or subsequent connections. Existing connections are restored at the next logon. Use /delete to remove persistent connections.
/home : Connects a user to the home directory.
net help command : Displays help for the specified net command.
NET USE Chart for Windows XP syntax
NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP | HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION | SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]
| NET ACCOUNTS | Adjust account settings.
[/FORCELOGOFF:{minutes | NO}] [/MINPWLEN:length] |
| NET COMPUTER | Add other networked computers with Windows Domain Controller.
\\computername {/ADD | /DEL} |
| NET CONFIG | Displays your current server and/or workgroup settings.
[SERVER | WORKSTATION] |
| NET CONTINUE | Continues the use of service.
[service] |
| NET FILE | Display opened shared files on the server.
[id [/CLOSE]] |
| NET GROUP | Add, delete, view, and otherwise manage network workgroups.
[groupname [/COMMENT:"text"]] [/DOMAIN] |
| NET LOCALGROUP | Add, delete, view, and otherwise manage network groups.
[groupname [/COMMENT:"text"]] [/DOMAIN] |
| NET NAME | Create or delete name used for messaging.
[name [/ADD | /DELETE]] |
| NET PAUSE | Pause the specified network service.
[service] |
| NET PRINT | Manage network print jobs.
\\computername\sharename |
| NET SEND | Sends messages to other users, computers, or messaging names on the network. The Messenger service must be running to receive messages.
You can send a message only to an name that is active on the network. If the message is sent to a username, that user must be logged on and running the Messenger service to receive the message. {name | * | /DOMAIN[:name] | /USERS} message |
| NET SESSION | Display all sessions connected to the computer and deletes them if specified.
[\\computername] [/DELETE] |
| NET SHARE | Create and manage a local network share.
sharename |
| NET START | Start the specified network service.
[service] |
| NET STATISTICS | Display network statistics of the workstation or server.
[WORKSTATION | SERVER] |
| NET STOP | Stop the specified network service.
service |
| NET TIME | Display the time and date of another network computer.
[\\computername | /DOMAIN[:domainname] | /RTSDOMAIN[:domainname]] [/SET] |
| NET USE | Connects or disconnects your computer from a shared resource or displays information about your connections.
[devicename | *] [\\computername\sharename[\volume] [password | *]] |
| NET USER | Displays users on the computer and/or domain.
[username [password | *] [options]] [/DOMAIN] |
| NET VIEW | Displays a list of computers in a specified workgroup or the shared resources available on a specified computer.
[\\computername [/CACHE] | /DOMAIN[:domainname]] |
NET USE Chart for Windows 2000 syntax
| NET CONFIG | Displays your current workgroup settings.
NET CONFIG [/YES]
|
||||||||||||||||||||||||||
| NET DIAG | Runs the Microsoft Network Diagnostics program to test the hardware connection between two computers and to display information about a single computer. NET DIAGNOSTICS [/NAMES | /STATUS]
|
||||||||||||||||||||||||||
| NET HELP | Displays information about NET commands and error messages.
command /?
|
||||||||||||||||||||||||||
| NET INIT | Loads protocol and network-adapter drivers without binding them to Protocol Manager. This command may be required if you are using a third-party network-adapter driver. You can then bind the drivers to Protocol Manager by typing NET START NETBIND.
NET INITIALIZE [/DYNAMIC]
|
||||||||||||||||||||||||||
| NET LOGOFF | Breaks the connection between your computer and the shared resources to which it is connected.
NET LOGOFF [/YES]
|
||||||||||||||||||||||||||
| NET LOGON | Identifies you as a member of a workgroup.
NET LOGON [user [password | ?]] [/DOMAIN:name] [/YES] [/SAVEPW:NO]
If you would rather be prompted to type your user name and password instead of specifying them in the NET LOGON command line, type NET LOGON without options. |
||||||||||||||||||||||||||
| NET PASSWORD | Changes your logon password.
NET PASSWORD [oldpassword [newpassword]]
The first syntax line above is for changing the password for your password-list file. The second syntax line above is for changing your password on a Windows NT or LAN Manager server or domain. |
||||||||||||||||||||||||||
| NET PRINT | Displays information about print queues and controls print jobs.
NET PRINT \\computer[\printer] | port [/YES]
When you specify the name of a computer by using the NET PRINT command, you receive information about the print queues on each of the shared printers that are connected to the computer. |
||||||||||||||||||||||||||
| NET SEND | NET SEND {name | * | /DOMAIN[:name] | /USERS} message
Sends messages to other users, computers, or messaging names on the network. The Messenger service must be running to receive messages. You can send a message only to an name that is active on the network. If the message is sent to a username, that user must be logged on and running the Messenger service to receive the message.
|
||||||||||||||||||||||||||
| NET SHARE | NET SHARE sharename
|
||||||||||||||||||||||||||
| NET START | Starts services. NOTE: Services cannot be started from a command prompt within Windows.
NET START [BASIC | NWREDIR | WORKSTATION | NETBIND | NETBEUI | NWLINK] [/LIST] [/YES] [/VERBOSE]
To start the workgroup redirector you selected during Setup, type NET START without options. In general, you don't need to use any of the options. |
||||||||||||||||||||||||||
| NET STOP | Stops services. NOTE: Services cannot be stopped from a command prompt within Windows. NET STOP [BASIC | NWREDIR | WORKSTATION | NETBEUI | NWLINK] [/YES]
To stop the workgroup redirector, type NET STOP without options. This breaks all your connections to shared resources and removes the NET commands from your computer's memory. |
||||||||||||||||||||||||||
| NET TIME | Displays the time on or synchronizes your computer's clock with the shared clock on a Microsoft Windows for Workgroups, Windows NT, Windows 95, or NetWare time server.
NET TIME [\\computer | /WORKGROUP:wgname] [/SET] [/YES]
|
||||||||||||||||||||||||||
| NET USE | Connects or disconnects your computer from a shared resource or displays information about your connections.
NET USE [drive: | *] [\\computer\directory [password | ?]] NET USE drive: | \\computer\directory /DELETE [/YES] NET USE drive: | * /HOME
To list all of your connections, type NET USE without options. |
||||||||||||||||||||||||||
| NET VER | Displays the type and version number of the workgroup redirector you are using.
NET VER |
||||||||||||||||||||||||||
| NET VIEW | Displays a list of computers in a specified workgroup or the shared resources available on a specified computer.
NET VIEW [\\computer] [/YES]
To display a list of computers in your workgroup that share |