Saltar al contenido

Command, use, parameters and examples NET USE

Command tracert.  Syntax, parameters and examples

Command NET USE connects or disconnects a computer to a shared network resource or displays information about established connections on the computer. Command NET USE it also manages persistent network connections. If used without parameters, the command NET USE retrieves a list of network connections.

Syntax

net use [{ | *}] [\[]] [{ | *}]] [/user:[][/user:[]] [/user: [;] [/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]

net use [ [/home[{ | *}] [/delete:{yes | no}]]

net use [/persistent:{yes | no}]

NET USE command parameters

Parameter

Description

Assign a name to connect to the resource or specify the device to disconnect. There are two types of device names: disk drives (ie D: via Z 🙂 and printers (ie LPT1: via LPT3 :). Write an asterisk

instead of a specific device name to assign the next available device name.

\

Specifies the server name and share. If ComputerName contains spaces, use quotation marks around the computer’s full name from the double line (\) to the end of the computer name, for example, «\ ComputerName ShareName». The computer name can be between 1 and 15 characters long.

Specifies the password required to access the share. Write an asterisk to generate a password request. The password is not displayed when you type it when prompted for the password.
/ user Specifies another username to sign in with.

Specify another domain. If you omit DomainName, NET USE uses the domain that is currently connected.

Specifies the username to log in with.

Specifies the fully qualified domain name for the domain in which the user account exists.

Stores credentials provided for reuse.

Specifies that the network connection uses the credentials on a smart card. If more than one smart card is available, the system will ask you to specify the credential.

Cancel the specified network connection. If the connection is specified with an asterisk

all network connections are canceled.

Control the use of persistent network connections. The default setting is the last one used. Device-free connections are not persistent. «Yes» saves all connections as they are and restores them on the next connection. «No» does not save the connection made or subsequent connections. Existing connections are restored the next time you connect. Use / delete to delete persistent connections.

Connects a user to the root directory.

net help

Displays help for the specified network command.

Remarks

Connecting and disconnecting a network resource

Use the command

NET USE

to connect and disconnect a network resource and view your current connections to network resources. You cannot disconnect from a shared directory if you are using it as your current drive or if an active process is using it.

View connection information

  • To view information about a connection, you can do one of the following:
  • Write NET USE

Device name

for information about a specific connection.

Type NET USE to get a list of all connections on your computer.

Using connections without devices

Device-free connections are not persistent.

Connecting to NetWare servers

After installing and running the file

Customer service for NetWare

, you will be able to connect to a NetWare server on a Novell network. Use the same syntax that you use to connect to a Windows network server, except that you need to include the volume that you want to connect to.

Using quotation marks

If the name of the server you provide contains spaces, use quotation marks around the text (ie

«Server name»

). If you omit the quotation marks, an error message will appear.

Examples To assign the device name to the disk drive AND: to the shared director of carts

on the server or computer

\ Commercial Department

, write:

C: > net use e: \ Department of Commerce letters To map the device name on the M: drive to the directory antonio within the volume ofCARDS

on the server or computer

\ Commercial Department

, write:

C: > net use m: \ DptoComercial letters antonio

To connect your John user ID as if the connection was made in the Accounts domain, type:

C: > net use d: \ Dptotecnico shared / user: Accounts Juan

To log out of the \ Commercial Public directory, type:

C: > net use z: \ Commercial Public / delete

To connect shared memories on the \ Commercial 2 server, type:

C: > net use k: «\ Commercial 2» memos

To restore current connections with each connection, regardless of future changes, type:

C: > net / persistent use: yes»></p>
<p></p>
</p>

            
            	<div class=