Home
> Commands N-Z
> Commands N
NET USE
Description
| Syntax
| Parameters
| Switches
| Related
| Notes
| Examples
| Errorlevels
| Availability
Connects a computer to a shared resource or disconnects a
computer from a shared resource.
Syntax
NET HELP USE
NET USE
[drive:
| *]
[\\computer_name\directory
[password
| ?]]
[/SAVEPW:NO]
[/YES]
[/NO]
NET USE
[port:]
[\\computer_name\printer
[password
| ?]]
[/SAVEPW:NO]
[/YES]
[/NO]
NET USE
drive:
| \\computer_name\directory
/DELETE
[/YES]
NET USE
port:
| \\computer_name\printer
/DELETE
[/YES]
NET USE
*
/DELETE
[/YES]
NET USE
drive:
| *
/HOME
NET USE
[drive:
| *]
[\\computer_name\directory[\volume]]
[password
| *]
[/USER:[domainname\]username]
[/SAVECRED]
[/SMARTCARD]
[/DELETE
| /PERSISTENT:[YES | NO]]
List all computer connections:
NET USE
Parameters
- \\computer_name
(v7.00
Win95
NT3.1)
- Name of the computer controlling the shared
resource. If the computername contains blank characters,
enclose the double backslash (\\) and the computername
in quotation marks (" "). The computername may be from
1 to 15 characters long.
- directory
(v7.00
Win95
NT3.5)
- Specifies the name of the shared directory.
- drive:
(v7.00
Win95
NT3.1)
- Specifies the drive letter you assign to a shared
directory.
- *
(NT3.1)
- Produces a prompt for the password. The password is
not displayed when you type it at the password prompt.
- password
(v7.00
Win95
NT3.1)
- Specifies the password for the shared resource, if any.
- port
(v7.00
Win95
NT4 ONLY)
- Assigns a name to connect to the resource or specifies
the device to be disconnected. There are two kinds of
devicenames: disk drives (D: through Z:) and printers
(LPT1: through LPT3:). Type an asterisk instead of a
specific devicename to assign the next available
devicename.
- printer
(v7.00
Win95)
- Specifies the name of the shared printer.
- ?
(v7.00
Win95)
- Specifies that you want to be prompted for the
password of the shared resource. You don't need to use
this option unless the password is optional.
- *
(v7.00
Win95
NT3.1)
- Specifies the next available drive letter. If used
with /DELETE, specifies to
disconnect all of your connections.
- \volume
(NT3.1)
- Specifies a NetWare volume on the server. You must have
Client Services for Netware (Windows Workstations)
or Gateway Service for Netware (Windows Server)
installed and running to connect to NetWare servers.
Switches
- /DELETE
(v7.00
Win95
NT3.1)
- Breaks/Disconnects the specified connection to a shared
resource.
- /HOME
(v7.00
Win95
NT3.1)
- Makes a connection to your HOME directory if one is
specified in your LAN Manager or Windows NT user account.
- /NO
(v7.00
Win95)
- Carries out the command, responding with NO
automatically when you are prompted to confirm actions.
- /PERSISTENT:[YES | NO]
(NT3.1)
- Controls the use of persistent network connections.
The default is the setting used last.
- Saves connections as they are made, and restores
them at next logon.
- Does not save the connection being made or subsequent
connections; existing connections will be restored at
next logon. Use the /DELETE
switch to remove persistent connections.
- /SAVECRED
(NTXP)
- Stores the provided credentials for reuse.
- /SAVEPW:NO
(v7.00
Win95)
- Specifies that the password you type should not be
saved in your password-list file. You need to retype
the password the next time you connect to this resource.
- /SMARTCARD
(NTXP)
- 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.
- /USER:[domainname\]username]
(NT3.1)
- Specifies a different username with which the connection
is made.
- /YES
(v7.00
Win95)
- Carries out the command without first prompting you
to provide information or confirm actions.
Related
none.
Notes
none.
Examples
none.
Errorlevels
none.
Availability
- External
-
- DOS
-
v7.00
v7.0R1
v7.10
v8.00
- Windows
-
Win95
Win98
WinME
- Windows NT
-
NT3.1
NT3.5
NT3.51
NT4
NTXP
NT2003
Last Updated: 2006/12/01
Direct corrections or suggestions to:
Rick Lively