Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix Multiple Connections to a Server or Shared Resource Error

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

When Windows shows the error “Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed,” it means your PC already has an active session to a network share (like a NAS or another computer) using one set of credentials, and you’re trying to connect again with different credentials. The fix is to disconnect the existing session and reconnect with the correct username and password. Below are the exact steps to resolve it.

What You'll Need

  • Administrator access to your Windows PC (to run Command Prompt or PowerShell).
  • The correct username and password for the network share you’re trying to access.
  • The name or IP address of the server or shared resource.

Step-by-Step

  1. Close any open files or windows that are using the network share. This includes File Explorer windows, mapped drives, and any applications that may be accessing files on that server.
  2. Open Command Prompt as administrator. Click the Start button, type cmd, right-click “Command Prompt” and select “Run as administrator.” If prompted by User Account Control, click “Yes.”
  3. List all active network connections. In the Command Prompt window, type the following command and press Enter:
    net use
    This will show a list of all current network connections, including mapped drives and connections to servers. Look for the entry that matches the server or shared resource you’re trying to access.
  4. Delete the existing connection. Type the following command and press Enter, replacing \\server\share with the actual path of the connection you want to remove (or use the drive letter if it’s mapped, e.g., Z:):
    net use \\server\share /delete
    If you’re not sure of the exact path, you can delete all connections with:
    net use * /delete
    This will prompt you to confirm each deletion. Type Y and press Enter for each one.
  5. Clear stored credentials (optional but recommended). Open the Windows Credential Manager by typing “Credential Manager” in the Start menu and selecting it. Under “Windows Credentials,” look for any entries related to the server (e.g., TERMSRV or MicrosoftAccount). Click the entry and select “Remove.” This ensures no old credentials are reused automatically.
  6. Reconnect to the shared resource. Open File Explorer, type the UNC path (e.g., \\server\share) into the address bar, and press Enter. When prompted, enter the correct username and password. Make sure to check the box “Remember my credentials” if you want Windows to save them.
  7. Test the connection. Once connected, try accessing the files or folders. If you still get the error, repeat the steps and ensure you’re using the same username that you used for the original connection.

Common Mistakes

  • Not running Command Prompt as administrator. The net use command may fail with “Access denied” if you don’t have elevated privileges.
  • Deleting the wrong connection. If you have multiple connections to the same server but different shares, make sure you delete the one that’s causing the conflict. Use the net use output to identify the exact path.
  • Forgetting to close open files. If a file on the share is still open in an application, the deletion may fail. Close all programs that might be using the share.
  • Using different usernames for the same server. The error occurs because you’re trying to connect with a different username than the one already in use. Always use the same username and password for a given server.

Tips

  • Use the same credentials consistently. If you have multiple accounts on the server, pick one and stick to it for all connections to that server.
  • Map drives with the correct credentials. When mapping a network drive, use the “Connect using different credentials” option and enter the correct username/password. This avoids the error in the future.
  • Restart your PC if the error persists. A reboot clears all network sessions and can resolve stubborn conflicts.
  • Use the IP address instead of the hostname. Sometimes DNS issues cause Windows to treat the same server as two different ones. Using the IP address (e.g., \\192.168.1.100\share) can avoid this.

Troubleshooting

If the error still appears after following the steps above, try these additional checks:

  • Check for hidden connections. Some applications (like backup software or antivirus) may establish connections in the background. Use net use again to see if any new connections have appeared. If so, delete them.
  • Restart the “Workstation” service. Open Command Prompt as administrator and type:
    net stop workstation
    then
    net start workstation
    This restarts the network client service and clears all sessions.
  • Verify the server address. If you’re using a DNS name, try pinging it to ensure it resolves correctly. If the IP changes, you might be connecting to a different server than you think.
  • Check if the server is a domain controller. If the server is a domain controller, you may need to use the domain username (e.g., DOMAIN\username) instead of a local account.
  • If nothing works, reboot your PC. This is the most reliable way to clear all network sessions. After reboot, try connecting again.

Frequently Asked Questions

Why does this error happen even when I'm using the same username?

This can happen if Windows is storing multiple credentials for the same server, or if the server is accessed via different paths (e.g., by IP and by hostname). The error triggers when Windows sees a second connection attempt with credentials that differ from the existing session.

Can I avoid this error by mapping a drive?

Yes, but only if you use the same credentials consistently. When mapping a drive, select “Connect using different credentials” and enter the same username/password you use for other connections to that server.

Will deleting all connections with net use * /delete affect my mapped drives?

Yes, it will disconnect all mapped drives and network connections. You’ll need to reconnect them afterward. It’s a safe operation, but you may need to re-enter credentials.

Is there a way to see which username is currently connected?

Yes, run net use in Command Prompt. The output shows the remote path and the username used for each connection.

Does this error affect Windows 10 and Windows 11 the same way?

Yes, the error and the fix are essentially the same on both Windows 10 and Windows 11. The steps for Command Prompt and Credential Manager are identical.

What if I need to connect to the same server with two different usernames?

Windows does not allow two simultaneous connections to the same server with different usernames. You must disconnect one session before connecting with the other. There is no supported workaround for this limitation.