Introduction
When using shared folders or NAS on Windows, you may suddenly find yourself unable to connect.
A shared folder that you could open yesterday cannot be opened today.
The Z drive for the network drive is not displayed.
The credential input screen appears repeatedly.
In such cases, the basic command you should check is [net use].
By using net use, you can check which shared folders Windows is currently connected to.
In this article, we will simply explain what net use is, what you can learn from it, and how to use it basically.
Conclusion first
net use is a command to check the [connection status of network drives and shared folders] in Windows.
The only command you need to remember first is this one.
net use
When you execute this command, a list of currently connected network drives will be displayed.
Here are the main things you can check:
・Which drive letter is being used
・Which shared folder it is connected to
・Whether the connection status is OK
・Whether any old, disconnected connections remain
- Whether any unnecessary connections remain
When you cannot access a shared folder, checking the status with net use first makes it easier to find clues to the cause.
What is net use
net use is a command for checking, connecting to, and disconnecting from shared folders and network drives on a network in Windows.
In a corporate environment, you may use locations such as the following:
- Shared folders
- NAS
- File servers
- Department folders
- Backup folders
- Shared folders for business software
You use net use when you want to check the connection status to these.
What is a network drive
A network drive is a shared folder on a network that has been made accessible as if it were a drive on Windows.
For example, it is displayed in File Explorer as follows:
- Z drive
- Y drive
- X drive
- Drive for shared folders
In reality, it is not a drive located inside your own computer.
It makes folders on other PCs or NAS devices on the network appear as drives on Windows.
Difference from shared folders
A shared folder is a folder that is published on the network.
For example, it is represented in the following format.
\\server\share
\\NAS01\data
\\192.168.1.100\share
A network drive is this shared folder with a drive letter assigned to it.
For example, suppose you have the following shared folder.
\\server\share
If you map this as the Z drive, you can open it on Windows as follows.
Z:
In other words, it makes a shared folder on the network as easy to use as a regular drive.
What you can find out with net use
With net use, you can mainly check the following information:
・Currently connected network drives
・Assigned drive letters
・Connection destination shared folders
・Connection status
・Old connection information
- Disconnected connections
- Unnecessary network connections
This is a very frequently used check command when you cannot access shared folders or NAS.
Where to enter the command
net use can be executed in the Command Prompt.
The procedure is as follows.
Click the search bar at the bottom of the screen.
Type cmd.
Open [Command Prompt].
Enter the following command.
net use
Press the Enter key.
This will display the current network connection status.
Example of execution results
When you execute net use, results like the following will be displayed.
New connections will be remembered.
Status Local Name Remote Name
OK Z: \server\share
Disconnected Y: \NAS01\data
The command completed successfully.
By looking at this display, you can confirm which drive is connected to where.
How to read the display
In the net use results, you mainly check the following three items.
・Status
・Local name
・Remote name
Let's organize the meaning of each.
What is status?
Status indicates the connection state.
These are common displays.
・OK
・Disconnected
・Unavailable
If it is displayed as OK, it is basically in a connected state.
If it is displayed as Disconnected or Unavailable, it may not be currently connected.
What is a local name?
A local name is the drive letter displayed on Windows.
For example, it looks like the following.
・Z:
・Y:
- X:
It is easy to understand if you think of it as the letter for the network drive displayed in File Explorer.
What is a remote name?
The remote name is the actual connection destination.
For example, it is displayed in the following format.
\\server\share
\\NAS01\data
\\192.168.1.100\share
You can check which server or NAS shared folder you are connected to.
When OK is displayed
If the status is OK, it means the network drive is connected.
However, just because it says OK does not necessarily mean everything is fine.
For example, the following cases may occur:
- You can open the folder, but some files cannot be opened
- Insufficient access permissions
- Errors occurring in business software
- You can save files, but cannot delete them
In such cases, you also need to check the shared folder permissions and server-side settings.
When Disconnected is displayed
If the status is Disconnected, it means that while the information from a previous connection remains, it is currently not connected.
Possible causes include the following:
・The destination PC or NAS is not powered on
・The network is not connected
・The server name has changed
・The IP address has changed
・The credentials are incorrect
・The shared folder has been deleted
・Access permissions have been changed
In these cases, check if the destination is operating normally.
Checks when you cannot access a shared folder
When you cannot access a shared folder, first run net use.
Points to check:
・Is the target drive letter displayed?
・Is the status OK?
・Is it disconnected?
・Is the remote name correct?
・Are there any old connections remaining?
・Are you connected to the same server with a different user?
Be especially careful if you are connected to the same server with a different user.
In Windows, attempting to connect to the same destination with a different user simultaneously can sometimes cause an error.
What are credentials?
Credentials are the username and password information used to access shared folders.
When connecting to a shared folder, you may be prompted to enter the following:
- Username
- Password
If this information is saved in Windows, it may connect automatically the next time.
However, if old credentials remain, it can sometimes cause connection errors.
Command to disconnect a network drive
To disconnect a specified network drive, enter the following:
net use Z: /delete
This is a command to disconnect the network connection for the Z drive.
It is important to note here that /delete means to "disconnect".
It does not mean to delete files inside the shared folder.
Points to note about /delete
The /delete option for net use is for disconnecting a network drive.
It does not delete the files themselves.
For example, if you run the following command:
net use Z: /delete
In this case, the connection that was displayed as the Z drive will be removed.
The contents of the shared folder will not be deleted.
However, if there are any open shared files, make sure to close them first.
Command to disconnect all connections
If you want to disconnect all network connections at once, use the following command.
net use * /delete
This command disconnects all current network connections at once.
It is convenient, but caution is required.
Shared folders and network drives currently in use for work may also be disconnected.
Precautions when disconnecting everything
When using net use * /delete, check the following:
・Have you closed the files in the shared folder?
・Is any business software using the shared folder?
・Is it okay for other network drives to be disconnected as well?
・Do you know how to reconnect?
・If it is a company PC, have you checked with the administrator?
When using it to check for causes, consider the scope of the impact before executing.
Command to connect a network drive
To connect a network drive manually, enter the following:
net use Z: \server\share
In this case, \server\share will be connected as the Z drive.
If a username or password is required, you may be prompted to enter them.
When connecting by specifying a username
To connect by specifying a username, enter the following:
net use Z: \server\share /user:username
In a corporate environment, you may need to include the domain name or PC name.
Here is an example:
net use Z: \server\share /user:DOMAIN\user01
Alternatively, you may need to enter it as follows:
net use Z: \server\share /user:PCNAME\user01
Since the input method varies depending on the environment, please check your company's internal rules.
Do not write the password directly
With net use, you can also include the password in the command.
However, this is generally not recommended.
The reason is that the password may remain on the screen or in the history.
For security, it is better to enter the password when prompted after execution.
Be especially careful when using company PCs.
Settings to remember the connection
If you want to use the network drive again in the future, you may want to have the connection remembered.
The /persistent option is related to that setting.
If you want to restore the connection after the next sign-in, enter the following:
net use Z: \server\share /persistent:yes
If you want to make a temporary connection, enter the following:
net use Z: \server\share /persistent:no
For checking purposes only, persistent:no can sometimes be easier to understand.
List of frequently used net use commands
Here is a summary of frequently used commands.
・Check connection status
net use
・Disconnect Z drive
net use Z: /delete
・Disconnect all connections
net use * /delete
・Connect a shared folder to Z drive
net use Z: \server\share
・Connect by specifying a username
net use Z: \server\share /user:username
・Remember the connection for next time
net use Z: \server\share /persistent:yes
・Connect temporarily
net use Z: \server\share /persistent:no
Common trouble 1: System error 53
When trying to connect using net use, the following error may occur.
System error 53 has occurred.
The network path was not found.
This may occur when the connection destination cannot be found.
Things to check:
・Is the server name correct?
・Is the share name correct?
・Is the destination PC or NAS powered on?
・Is it connected to the network?
・Does ping work?
・Is name resolution working?
If you cannot connect using the server name, you may want to check using the IP address.
Common trouble 2: System error 5
The following error may occur.
System error 5 has occurred.
Access is denied.
This may occur due to access rights or credential issues.
Things to check:
・Is the username correct?
・Is the password correct?
・Do you have permissions for the shared folder?
・Are you connected to the same server with a different user?
・Is there outdated information remaining in the Credential Manager?
In this case, check the connection information and access rights.
Common Trouble 3: System Error 85
You may encounter the following error:
System error 85 has occurred.
The local device name is already in use.
This may occur if the specified drive letter is already being used.
Things to check:
・View current connections with net use
・Check if the same drive letter is already in use
・Disconnect unnecessary connections
・Use a different drive letter
Also check the Credential Manager
Even if you disconnect old connections with net use, old IDs or passwords may remain in the Credential Manager.
Where to check:
Control Panel
↓
User Accounts
↓
Credential Manager
↓
Windows Credentials
Check here to see if any old server names or NAS information remain.
Checking with ping
If you cannot connect using net use, it is helpful to combine it with ping.
When checking by server name:
ping server
When checking by IP address:
ping 192.168.1.100
If ping does not respond, it may be a network connection issue rather than a shared folder issue.
If ping responds but you cannot connect with net use, check the sharing settings, credentials, and access permissions.
Checking with ipconfig
When checking the network status, ipconfig is also useful.
ipconfig
Things to check:
・Whether an IP address has been obtained
・Whether there is a default gateway
・Whether the wired LAN or Wi-Fi is connected
- Check if the IP address starts with 169.254
If the IP address is not obtained correctly, you may not be able to connect to the shared folder.
Recommended order for on-site troubleshooting
When you cannot access a shared folder or network drive, it is recommended to check in the following order.
Confirm the symptoms of not being able to access the shared folder.
Check the current connection status using net use.
Confirm the server name or NAS name of the connection destination.
Check if you can communicate with the destination using ping.
Check your own IP address using ipconfig.
Disconnect old net use connections.
Check the Credential Manager.
Reconnect if necessary.
Following this order makes it easier to isolate the cause.
Pre-work checklist
Check before starting work.
□ Confirmed which shared folder cannot be accessed
□ Confirmed the name of the connection destination
□ Confirmed the drive letter
□ Confirmed if the same symptom occurs on other PCs
□ Confirmed if the network is connected
□ Confirmed username and password
□ Closed open shared files
Work-in-progress checklist
Check using net use.
□ Opened Command Prompt
□ Executed net use
□ Checked status
□ Checked local name
□ Checked remote name
□ Checked if it is disconnected
□ Checked if any old connection destinations remain
□ Disconnected using /delete if necessary
Post-work checklist
Check after work.
□ Confirmed access to shared folder
□ Confirmed network drive is displayed
□ Confirmed business software can use the shared folder
□ Confirmed credentials are not requested repeatedly
□ Confirmed connection persists after restart
□ Set /persistent:yes if necessary
Points to note
When using net use, please keep the following in mind.
・/delete is for disconnecting, not for deleting files
・Be careful of business impact when disconnecting everything
・Close any open files first
・Do not write passwords directly into the command
・Do not connect to the same server with a different user
・Follow company rules for corporate PCs
・Consult with the maintenance staff if you are unsure
Be especially careful if business software is using the shared folder.
Common misconceptions
These are common misconceptions about net use.
・Thinking that running net use changes settings
・Thinking that /delete erases the contents of the shared folder
・Thinking that if it says OK, there are definitely no problems
・Thinking that if ping works, the shared folder must also be usable
・Thinking that credentials are completely erased just by using net use
・Thinking that if the drive letter is not visible, the shared folder itself has disappeared
net use is strictly a command to check the connection status on the Windows side.
The existence of and permissions for the shared folder itself must be checked separately.
Summary
net use is a basic command in Windows for checking the connection status of network drives and shared folders.
It is useful when you cannot access a shared folder or when a network drive is not displayed.
The following three commands are the first ones you should learn.
・Check connection status
net use
・Disconnect a specified drive
net use Z: /delete
・Disconnect all connections
net use * /delete
The points to look at are as follows:
・Status
・Local name
・Remote name
・Whether the connection destination is correct
・Whether it is in a disconnected state
・Whether old connections remain
For shared folder issues, it is easier to isolate the cause by checking ping, ipconfig, and Credential Manager along with net use.
First, try entering net use in the command prompt to check the current connection status.
Next steps to try
・Open the Command Prompt
・Run net use
・Check the status
・Check the local name
・Check the remote name
・Check if there are any disconnected connections
・Carefully disconnect any unnecessary connections
・Check if you can access the shared folder
net use is a basic command frequently used to check shared folders and network drives.
It may look difficult, but it is an easy-to-use command if you are just checking things for now.