Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use the Net Use Command in Windows

Use Windows net use to list network connections, map a shared folder to a drive letter, make a mapping persistent, or remove it safely.

Table of Contents

The Windows net use command manages connections to shared network resources. You can use it to view existing connections, map a shared folder to a drive letter, reconnect that mapping at sign-in, or remove a connection.

Run it in Command Prompt or Windows Terminal. Standard mappings usually work in a normal session, although access to some administrative shares may require an elevated terminal and appropriate permissions.

View current network connections

Enter the command without additional arguments:

net use

Windows lists active and remembered connections, including their drive letters and UNC paths. If no connections exist, it reports that the list is empty.

Running the net use command in Windows

Entering net use in Command Prompt

Network connections listed by net use

Map a shared folder to a drive letter

The basic pattern is:

net use DRIVE: "\COMPUTERSHARE"

For example, the following command maps the shared folder Projects on FileServer to drive P::

net use P: "\FileServerProjects"

Quote the UNC path when a computer or share name contains spaces. To let Windows select an available drive letter, replace the drive letter with an asterisk:

net use * "\FileServerTeam Files"

Connect with another account

Use /user: when the share requires credentials that differ from the account currently signed in:

net use P: "\FileServerProjects" /user:DOMAINusername *

The final asterisk tells Windows to prompt for the password. This is safer than placing a password directly in the command, where it may remain visible in the terminal or command history.

Control whether the mapping returns after sign-in

Add /persistent:yes to remember the connection, or /persistent:no to keep it limited to the current session:

net use P: "\FileServerProjects" /persistent:yes

The persistence setting also becomes the default for later net use commands that do not specify it.

Remove a mapped drive

Delete one mapping by specifying its drive letter:

net use P: /delete

To disconnect every current network connection, use the following command and review the confirmation prompt carefully:

net use * /delete

Useful net use options

OptionPurpose
net useLists current and remembered network connections.
DRIVE:Assigns or identifies a drive letter, such as P:.
\COMPUTERSHARESpecifies the UNC path of a shared resource.
/user:ACCOUNTConnects with a specified local, domain, or Microsoft Entra account name.
*Chooses an available drive letter in the device position or requests a password in the password position.
/persistent:yesRemembers the connection for future sign-ins.
/persistent:noDoes not remember the connection for future sign-ins.
/deleteRemoves the specified connection.
/?Displays command syntax and available switches.

Troubleshooting common errors

  • System error 53: Confirm the server name, share name, network connection, and firewall rules.
  • System error 67: Check that the share name exists and that the UNC path is typed correctly.
  • System error 85: The selected drive letter may already be in use. Choose another letter or remove the existing mapping.
  • Access is denied: Verify both the share permissions and file-system permissions for the account being used.
  • Conflicting credentials: Windows may already have a connection to the same server under another account. Disconnect that connection before trying different credentials.

Use net use /? to see the syntax supported by the version of Windows you are running. Switch availability can differ between Windows editions and older releases.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.