The local device name is already in use when accessing mapped drive after computer reboot.

techcoor 1,251 Reputation points
2021-10-22T14:20:50.693+00:00

Mapping the drive in Windows 10 can be done using either drive name or IP address. However, when the computer is rebooted can not access the drive (mapped drive shows with red X)

An Error occurred while reconnecting Z: to \MYCLOUDEX2ULTRA\Public
Microsoft Windows Network: The local device name is already in use.

Tried mapping using command prompt and command is accepted but the mapping does not show in File Explorer. ex How to map network drive using Command Prompt on Windows 10 • Pureinfotech net use Z: \vm-beta\ShareOne password /user:admin /persistent:yes

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,272 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426.1K Reputation points MVP
    2021-10-24T00:16:35.33+00:00

    Try

    net use e: \\servername\sharename password /user:servername\user1 /persistent:yes
    

    --please don't forget to upvote and Accept as answer if the reply is helpful--


17 additional answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2021-10-22T16:13:41.493+00:00

    May be because you logon as another user. Try

    net use * /delete
    net use e: \\servername\sharename
    

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. techcoor 1,251 Reputation points
    2021-10-22T16:46:42.75+00:00

    I do not see the difference between the command from Pureinfotech and what you have for 2. Net use * /delete will give "There are no entries in the list" probably because I have already selected disconnect.

    If the expected result is a mapped drive in File Explorer, I do not see any results in File Explorer. The net use Z: \vm-beta\ShareOne password /user:admin /persistent:yes gets "The command completed successfully" and nothing else.

    Sorry, I have not got back to the Windows Server 2019 question.

    0 comments No comments

  3. Dave Patrick 426.1K Reputation points MVP
    2021-10-22T17:59:02.557+00:00

    I do not see the difference between the command

    Too funny, I just echoed what you posted and added the

    net use * /delete
    

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  4. techcoor 1,251 Reputation points
    2021-10-23T22:35:18.91+00:00

    net use e: \servername\sharename
    I was wondering about the switch from drive Z to drive E. Not all the computers I have have a free E:. However, it did not make a difference.
    net use u: \ipaddress\sharename worked as well.
    In both cases, the user name and the password are asked for.
    The mapped drive does appear in File Explorer.
    After a reboot still end up with mapped drive with an red X. This time it is easier to recover as if I click the mapped then a Windows box pop up to add user name and password. and then I have access.
    I was looking for a command so the mapped drive is accessible after a reboot.

    0 comments No comments