FacebookTwitterLinkedIn

How to Fix "The local device name is already in use" Error on Windows 11

How to Fix “The local device name is already in use” Error on Windows 11

“The local device name is already in use” error commonly occurs when working with network-based systems. It often occurs when trying to access a network drive. This article will tell you more about this error and show several ways to fix it.

The local device name is already in use

What is “The local device name is already in use” Error?

A mapped drive is a shortcut that grants you access to the drive and the files and folders on it that are on another system. This error is triggered when you try to access a mapped drive.

This error occurs when 1) trying to access files in a shared folder and 2) when trying to restore a network mapping connection to a shared network folder.

The full error message reads as follows:

An error occurred while reconnecting to Microsoft Windows Network: The local device name is already in use. This connection has not been restored.

What Causes This Error?

  • Unassigned or incorrect drive letters. Some drives may have missing or incorrect drive letters.
  • Drive mapping errors. A problem occurred during the network drive mapping process.
  • Insufficient disk space on the network server. This error can be resolved by freeing up a few gigabytes of disk space on the root drive of the network server.
  • Disabled File and Printer Sharing. If File and Printer Sharing is disabled in your firewall, you may experience issues with shared drives and get the “local device name is already in use” error.

Video Instructions on How to Fix “The local device name is already in use” Error

Table of Contents:

Method 1. Remap the Network Drive

Remapping the network drive is officially recommended by Microsoft. Furthermore, this method is likely to work for most users.

1. Hold down Windows+R keys to open Run.

Type in CMD in Run and hold down Ctrl+Shift+Enter keys to open the Command Prompt as an administrator

2. In the Run dialog box, type in CMD and hold down Ctrl+Shift+Enter keys to open the elevated Command Prompt.

Run net use * /delete and net use Z: servershare /user: command

3. Type in net use * /delete and press Enter.

4. Then, type in net use Z: \\server\share /user:username password and press Enter. You must replace “username” and “password” with your actual user name and password.

5. Restart your PC and try to access the network drive.

[Back to Table of Contents]

Method 2. Assign a Letter to the Drive

The problematic drive might not have a drive letter assigned to it, or the drive in Disk Management may have a different assigned letter than the letter in network mapping.

Right-click Windows Start and click Disk Management

1. Right-click Start and click Disk Management.

Right-click the volume and select Change driver letter and paths

2. Right-click the volume without a drive letter and click Change Drive Letter and Paths.

Click Add or Change

3. Click Add or Change depending on whether the drive had an assigned letter.

Assign a new drive letter

4. Open the drive letter drop-down menu, select an available drive letter. Don’t select A or B as they are reserved for floppy drives on older systems.

Click OK

5. Click OK.

Click Yes to confirm the new drive letter

6. Click Yes when prompted.

7. Restart your PC and try to access the network drive.

[Back to Table of Contents]

Method 3. Enable File and Printer Sharing in Windows Defender Firewall

If File and Printer Sharing is disabled in Windows Defender Firewall (or a third-party firewall), you may experience problems with shared network drives. You fix this error by enabling File and Printer Sharing. If you use a third-party firewall program, make sure to allow this feature through it as well.

1. Hold down Windows+R keys to open Run.

Type in firewall.cpl and click OK

2. In the Run dialog box, type in firewall.cpl and click OK.

Select Allow an app or feature through Windows Defender Firewall

3. Click Allow an app or feature through Windows Defender Firewall in the Firewall settings window.

Click Change settings

4. In the Allowed apps and features window, click Change settings.

Mark the File and Printer Sharing checkbox and click OK

5. Find File and Printer Sharing, mark the checkbox next to it, and click OK.

6. Restart your PC and try to access the network drive.

[Back to Table of Contents]

Method 4. Delete the MountPoints2 Key in Windows Registry

Some users were able to resolve “The local device name is already in use” error by deleting the MountPoints2 registry key. However, we recommend you create a backup of your computer’s registry just in case. After opening the Windows Registry Editor, select Computer in the left pane. Then, click File in the menu bar and click Export. Type in a name for the backup file and click Save.

1. Hold down Windows+R keys to open Run.

Type in regedit in Run and click OK

2. In the Run dialog box, type in regedit and click OK to open the Windows Registry Editor.

Right-click MountPoints2 and click Delete

3. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer

4. Inside the Explorer registry key, find the key named MountPoints2, right-click it and click Delete.

Click Yes

5. Click Yes when prompted.

6. Restart your PC and try to access the network drive.

[Back to Table of Contents]

Method 5. Change Protection Mode Value in Windows Registry

Microsoft also officially recognizes this method as a legitimate fix for “The local device name is already in use” error. We recommend backing up your computer’s registry as described in Method 4.

1. Hold down Windows+R keys to open Run.

Type in regesit in Run and click OK

2. In the Run dialog box, type in regedit and click OK to open the Windows Registry Editor.

Right-click ProtectionMode and click Modify

3. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SessionManager

4. Select the SessionManager key.

5. In the right pane, find the ProtectionMode registry entry, right-click it and click Modify.

Set the Value data to 1 and click OK

6. Change the Value data from 0 to 1 and click OK.

7. Restart your PC and try to access the network drive.

Did this article help fix “The local device is already in use” error? Let us know by leaving a comment below.

[Back to Top]

▼ Show Discussion

About the author:

Rimvydas Iliavicius

Rimvydas is a researcher with over four years of experience in the cybersecurity industry. He attended Kaunas University of Technology and graduated with a Master's degree in Translation and Localization of Technical texts. His interests in computers and technology led him to become a versatile author in the IT industry. At PCrisk, he's responsible for writing in-depth how-to articles for Microsoft Windows. Contact Rimvydas Iliavicius.

Our guides are free. However, if you want to support us you can send us a donation.

About PCrisk

PCrisk is a cyber security portal, informing Internet users about the latest digital threats. Our content is provided by security experts and professional malware researchers. Read more about us.

Malware activity

Global malware activity level today:

Medium threat activity

Increased attack rate of infections detected within the last 24 hours.