“The Local Device Name Is Already in Use” Mapped Drive Error

Windows logo

Short answer: “The local device name is already in use. This connection has not been restored” means Windows tried to reconnect a mapped drive at sign-in, but that drive letter is already taken by a stale or half-connected mapping, usually because the server couldn’t be reached yet (for example before the VPN connected). Open Command Prompt, run net use, delete the stuck letter with net use K: /delete, then map it again once you can reach the server.

An engineer at a consulting firm working from home told us his VPN connected fine, but his server drives only worked some of the time. Each time he signed in, Windows popped up “Restoring Network Connections” with “The local device name is already in use”. Running net use showed every one of his nine mapped drives as Disconnected. We have seen the same message in the office too, at a civil engineering business, with a red cross on every network location in File Explorer. In both cases the drives were mapped and remembered, but the computer couldn’t reach the file server when Windows tried to reconnect them. Once the computer could reach the server again (after a restart in one case and a DNS reset in the other), the drives reconnected. Here is what we found and how to fix it.

Fixed by the GCIT service desk team. Written up by Elliot Munro, CISO.

Symptoms

When you sign in, or open a mapped drive in File Explorer, Windows shows a Restoring Network Connections message:

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

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

You may also see:

  • A red cross on the mapped drives under This PC > Network locations.
  • A notification saying “Could not reconnect all network drives”.
  • Drives listed as Disconnected or Unavailable when you run net use.
  • The error when mapping a drive by hand, as System error 85 has occurred.
  • Drives that start working later in the day, or after a restart, with nothing changed.

Command Prompt net use output listing mapped network drives with status Disconnected

Affected Software

  • Application: Windows File Explorer mapped network drives (SMB)
  • Platform: Windows 10 and Windows 11, Windows Server file shares and NAS shares
  • Related Services: VPN clients such as FortiClient, Group Policy or Intune drive mappings, DNS

Cause

Mapped drives set to Reconnect at sign-in are remembered by Windows. At every sign-in, Windows tries to reconnect each letter to its share. If the server can’t be reached at that moment, the letter is still reserved but the connection isn’t working. When Windows, a logon script or a Group Policy drive map then tries to connect the same letter again, it finds the letter already taken and reports that the local device name is already in use.

Common reasons the server can’t be reached at sign-in:

  • Working remotely. The VPN connects after you sign in, so the drives try to reconnect before there is a path to the server.
  • DNS problems. The computer can’t resolve the server’s name, often on a VPN or after a network change.
  • Two things mapping the same letter. A drive mapped by hand and the same letter mapped by Group Policy, Intune or a logon script.
  • The server or NAS was offline or restarting when you signed in.

Resolution

Step 1: Clear the stuck drive letter

  1. Make sure you can reach the server. If you are working remotely, connect your VPN first.
  2. Open Command Prompt (not as administrator, so it runs as you) and type net use to list your mapped drives and their status.
  3. Save and close files using the affected drive. Record its current share path, then delete only the stuck mapping, for example net use K: /delete. Leave unrelated drive mappings in place.

Step 2: Map the drive again

  1. Map it from Command Prompt, for example net use K: \\server\share /persistent:yes, or in File Explorer right-click This PC > Map network drive.
  2. If your drives are mapped automatically by your company, sign out and back in instead, so the policy maps them for you.
  3. Open the drive to confirm it works.

Step 3: Stop it coming back (IT)

  • For remote staff, map drives after the VPN connects. Check that your approved drive-mapping task or policy runs after the required network becomes available. Microsoft’s older reconnect workaround was written for Windows 10 version 1809, so assess its applicability before reusing it on a current system.
  • Use one method per letter. If Group Policy or Intune maps a drive, remove any manual mapping of the same letter. Review the existing Group Policy action with IT. Recreating a mapping during policy refresh can interrupt open files, so do not switch every mapping to Replace as a blanket fix.
  • Check DNS on the VPN. Make sure the server name resolves from home, and map drives using the server’s full name.
  • Consider moving files to SharePoint or OneDrive for staff who mostly work away from the office, so they don’t rely on mapped drives at all.

If the drives are missing because a sign-in task did not run

Missing drive letters are a related symptom, but do not necessarily mean a letter collision. In another case, Brendan Ramstadius restored missing drives by running the existing mapping task in the affected person’s logged-on session. He enabled Task Scheduler history to investigate why the task was intermittently failing.

That restored access, but the ticket did not establish a permanent fix for the recurring task failure. IT should check the task’s trigger, run account, History and Last Run Result, then confirm the share is reachable when it runs. Test a fresh sign-in as well as an immediate manual run. Do not create a second competing mapping task or run a user-drive script under a different administrator account.

Microsoft’s scheduled-task troubleshooting guide explains which task settings and execution history to inspect.

Important Notes

  • Deleting a mapping doesn’t delete any files. net use /delete only removes the shortcut on your computer, not the data on the server.
  • Run the commands as yourself, not as administrator. Drives mapped in an elevated Command Prompt don’t show up in File Explorer.
  • If it happens to everyone at once, the server, NAS or network is more likely to be the problem. Contact IT.

Shared drives unreliable for your remote team? Talk to our team about making file access just work, in the office and at home.

Was this article helpful?
Ready to secure and simplify your IT? Talk to a GCIT expert today.