If you often access shared folders or drives on a local network, you might have run into the error message: “Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed.”
This issue typically occurs when you try to connect to a shared folder or network drive using different credentials (like two different usernames or accounts) on the same server. Windows only allows one active connection per user session to a particular network resource.
In this guide, we’ll walk you through how to fix the “multiple connections” error on Windows 11 using Command Prompt, File Explorer, and network credential management.
1. Why This Error Happens
This error occurs when:
- You’ve already mapped a network drive using one set of credentials, and you try to access the same server with another username.
- Windows still has cached sessions from a previous connection.
- You’re using multiple shared folders on the same machine with different logins.
For example, if you connect to \\Server1\Shared using UserA, and later try connecting to \\Server1\Docs with UserB, Windows will block the second connection.
2. Disconnect Existing Network Connections
The easiest fix is to disconnect any existing network connections before reconnecting with the correct credentials.
- Press Windows + R, type
cmd, and press Enter to open Command Prompt. - Type the following command and press Enter:
net useThis lists all active network connections. - To disconnect all connections, type:
net use * /deletePress Y when asked to confirm.
Once done, reconnect to your network resource with the correct credentials.
Example:
net use \\Server1\Shared /user:UserA
Tip: If you only want to disconnect a specific drive (like Z:), use:
net use Z: /delete
3. Clear Cached Network Credentials
If Windows has stored incorrect credentials, you can remove them from the Credential Manager.
- Press Windows + S and search for Credential Manager.
- Open Windows Credentials.
- Look for any saved credentials that match your network server (e.g.,
\\ServerNameorServerName.domain.local). - Click on each one and select Remove.
- Restart your PC.
After restarting, reconnect to the shared resource. Windows will prompt you to enter new credentials — this time, use the correct username and password.
4. Use “net use” Command with Explicit Credentials
To avoid future conflicts, always specify which credentials to use when connecting to a network drive.
- Open Command Prompt as Administrator.
- Use this command:
net use \\ServerName\SharedFolder /user:Domain\UserName PasswordExample:net use \\192.168.1.5\Docs /user:OfficePC\Admin123 P@ssword! - To map a specific drive letter, you can use:
net use Z: \\ServerName\SharedFolder /user:Domain\UserName
This ensures Windows knows exactly which credentials to use for each connection.
5. Enable “Different Credentials” in File Explorer
If you prefer to connect through File Explorer, use the “Connect using different credentials” option.
- Open File Explorer.
- Click This PC in the left panel.
- Click the three dots (⋯) in the top menu and select Map network drive.
- Choose a drive letter (e.g., Z:).
- In the Folder box, type the network path (e.g.,
\\Server\Share). - Check Connect using different credentials.
- Click Finish and enter the correct username and password.
This method lets you connect to the same server with specific login credentials, avoiding conflicts from existing sessions.
6. Log Off or Restart Your PC
Sometimes, even after removing sessions and credentials, cached network tokens persist until you log off.
- Save your work and log off from your Windows account.
- Log back in or restart your PC.
- Reconnect to the shared resource.
This resets all cached network authentication sessions.
7. Use the “net use /persistent:no” Option
If Windows keeps reconnecting automatically with old credentials, disable persistent connections.
- Open Command Prompt.
- Run the following command:
net use /persistent:noThis prevents Windows from saving old connections for automatic reconnection.
Next time you connect to a shared folder, Windows will prompt for credentials instead of reusing stored ones.
8. Connect Using IP Address Instead of Hostname
Windows treats hostnames and IP addresses as separate entities. If you must connect to the same server with different credentials, you can use this trick.
For example:
- Connect to
\\ServerName\Share1with one user. - Connect to
\\192.168.1.10\Share2with another user.
Since Windows interprets them as two different locations, it won’t trigger the “multiple connections” error.
Note: This workaround is only recommended for temporary use or small networks.
9. Remove Old Connections via PowerShell
If the issue persists, you can remove all network connections using PowerShell.
- Open PowerShell as Administrator.
- Run:
Get-SmbMappingThis lists all SMB connections. - To remove a specific mapping, type:
Remove-SmbMapping -RemotePath "\\ServerName\Share" -Force - To remove all connections:
Get-SmbMapping | Remove-SmbMapping -Force
After this, reconnect using the correct credentials.
10. Group Policy Fix for Persistent Connections (Advanced)
If this problem frequently occurs in a domain environment, you can configure Group Policy to prevent automatic reconnections using different credentials.
- Press Windows + R, type
gpedit.msc, and press Enter. - Navigate to:
Computer Configuration → Administrative Templates → System → Logon - Double-click Always wait for the network at computer startup and logon.
- Set it to Enabled.
- Click Apply → OK, then restart your system.
This ensures all network connections refresh during login, reducing cached conflicts.
11. Bonus: Automate Drive Mapping with Scripts
If you frequently connect to multiple servers, use a batch script to map drives cleanly each time.
Example Script (MapDrives.bat):
@echo off
net use * /delete /y
net use Z: \\Server1\Projects /user:User1 Password1
net use Y: \\Server2\Docs /user:User2 Password2
exit
Run this script at startup to disconnect old sessions and reconnect cleanly with the right credentials.
Wrapping Up
The “Multiple connections to a server or shared resource by the same user” error happens because Windows doesn’t allow simultaneous connections to the same server using different credentials.
Once configured correctly, you’ll be able to access all your shared folders and drives seamlessly — without running into connection conflicts.