46

I try to map a network resource to my local device.

I receive the following error: The local device name is already in use.

I have the problem to find which purpose the device is used for. I try a command net use and do not see it in the list, therefore, it is not mapped to a network resource.

Does anybody know how to see the list of all used devices in Windows 7?

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
Timofey
  • 1,421

18 Answers18

28

You need to remap the drive.

First:

net use * /delete

Then remap it using net use again:

net use Z: \\server\share /user:username password
Gareth
  • 19,080
dekyos
  • 381
13

It happened to me when I woke the computer from overnight sleep. I started stopping service after service and it seems that the "Computer Browser" service was at fault in my case. Try:

net stop browser  
net start browser
Worthwelle
  • 4,816
Gur
  • 239
4
  1. Delete the registry key
    HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2
    
  2. Logoff, then logon

If it still does not work, disconnect all mapped drives either from GUI or command line as in the previous post, delete the reg key above, and then log off and log on

JW0914
  • 9,096
3

One possibility that I just ran into is that you've added a device to your system that causes other "auto mapped" devices to bump up over the mapped drive.

Say you have M: mapped to a network drive, but you add a new harddrive that then causes all the removable drives (even though they don't have anything inserted into them) to bump up a letter (or two).

Now, suddenly, one of the removable drives is mapped to M:, so your network drive can no longer be mapped to M:, and when you try to remove the mapping, it'll give you a Device already in use error.

Open up "Storage/Disk management" and check ALL the drives for any mapping that might be on top of the drive you want to map.

If there, just remap that drive to something else.

Then you should be able to use net use to attach to your network drive properly.

JW0914
  • 9,096
drventure
  • 131
2

We had a Windows 7 laptop user whose printer was being mapped as the drive in question. But it wasn't showing up in Start->Computer and it wouldn't show up when listing with NET USE. However, if you went to Disk Management there was a removable media disk listed with no displayed drive letter that was mapped as the drive letter in question. If you right-clicked it, it would display EPSON in the properties.

We changed the drive letter to something that was not being used in Disk Management.

I asked my boss why a printer would map a drive, and he said it was so that the printer itself would deliver the drivers instead of Windows having to download them; but it assigns a drive letter without notifying some other Windows components apparently.

The errors that we got for it were Event ID 4098 with error code 0x80070055 in the application logs and when trying to map the drive letter with NET USE, Error 85 The local device name is already in use.

leeand00
  • 23,552
2

It may be a little late to answer this for the OP, but since others will continue to find this through search engines (like I did), I will add a solution that worked for me.

I work in an IT Department, and some of our users where experiencing this error today. The solution was to enable File and Printer Sharing.

AVG Anti-virus was used, so this option had to be enabled through the anti-virus firewall settings, and not Windows. So you'll need to adjust how you enable it if needed.

In my experience, shared drives never work when AVG decides to disable "File and Printer Sharing", though I'll always receive an error asking me to "check the spelling" or something similar. I have never seen it throw the "..Already in use" error until today.

1

I ran into this today, on several windows 7 and linux clients mapping drives from a linux samba server. The problem turned out to be that my root drive on the server had run out of space. clearing up a few gigabytes and restarting the samba server fixed the problem.

Rudy
  • 11
  • 1
1

There's an outside chance the cause of this is that the share you're trying to reach doesn't exist or has been disabled.

Joe M
  • 375
0

I had this problem, here is a possible solution, make sure your sharing server has space left on the OS or root drive or "/".

I run a samba server on linux and the root drive was full. If samba can't create logs it crash and from the windows side it fails with the error "local device name is already in use" for some obscure reason.

Shodan
  • 163
0

This sounds dumb, but I had it happen to me recently as well and I was pulling my hair out. Drives were set up with no credentials and there were no duplicate mappings. Drives were mapped by IP. In short, there should be no issues, but the drives would randomly disconnect for 2-3 minutes while in use.

It turns out that when I made a small network change, the users chose the "Public" option on the network popup instead of "Work".

Yes, switching it back to "Work" resolved it for me. You can do it under "Network and Sharing Center" from the start menu and then click on the Public icon to change it back to Work.

Mike H
  • 13
0

If you use a VPN to connect to the network that contains the network resource, the VPN can also cause this error:

In 'Network and sharing center', each network connection is given a network type (private/domain/home/public). I've seen situations where the VPN connection was stuck at 'Identifying...'. The network is considered Public until identification is finished, this means Windows Firewall will not allow connections to network drives via this connection.

Restarting the VPN usually solves the issue for me.

Hobbes
  • 135
0

Replacing the hostname with its IP address solved the issue for me. Ping the hostname to find the IP address and replace the name with that IP address.

For example: I had this error with path \\it-share\software\deployment

I replaced it-share with its IP address like this: \\172.x.y.122\software\deployment

It worked!

Worthwelle
  • 4,816
0

I tried the top 3 Answers - 1. delete all mappings, 2. restart services and 3. delete reg key but those didn't work.

In a SO thread, solution given by @wimh fixed it for me. A system account was hogging the drive letter:

https://stackoverflow.com/questions/5914282/networked-drive-in-purgatory-after-net-use-start-up-script

Skurfur
  • 123
0

You need psexec if you can't see the mounted drives with "net use"

psexec \\localhost -s cmd

Here you need to use "net use" again, delete if they show up here, then try mounting/reconnecting again.

b0k
  • 1
0

I had a user with the same issue, but the solution was different. Scenario was they were getting this issue on their laptop, which we swapped out, and new laptop doing the same thing.

This network uses Meraki to control the access points, and they have setup a splash page to accept the terms and conditions of using the connection. Turns out this user never did that and kept getting issues when changing to ethernet to wifi. Click accept and everything is fine.

James
  • 1
0

I had the same issue (The local device name is already in use).

For me the issue was related to my subnet mask: the Windows server was in a /24 (10.1.1.5/24) while my DHCP server was providing /23 (netmask 255.255.254.0). For clients in /24 the connection went just fine, but for any clients that got a /23 address (e.g. 10.1.2.3/23), the error appeared.

I could easily change the subnet mask on my Windows Server to /23 and this fixed the issue (no reboot required).

SaeX
  • 573
0

We have a GPO set the drives; net use is empty.

Had a Windows 11 machine getting this error but only for mapped drives hosted on a particular server (other server shares were working). Rebooting did nothing.

Clearing the %temp% directory and then rebooting caused the error to change to "username / password incorrect", which then led to attempting to connect directly to a share on the server. This failed, but automatically prompted for an alternative set of credentials; the default set revealed the issue: the wrong credentials were being submitted. Went into the Credential Manager; immediately spotted the stale credentials, deleted, and everything started working as expected.

0

I was having the same issue on a Windows Server 2008 SBS while i was trying to connect to an old NAS.

After trying each of the suggestions i saw here, i wasn't able to fix this.

During troubleshooting i found out that the root of the issue could be one of the assigned server IP's.

Indeed that was. I went to NAS logs and i saw that it was adjusted to connect with the NAS admin username and password under a specific IP address which was assigned to the server instead of server's main IP address!

So for future reference, i would suggest to check if you are under multiple NICS on your machine. If so you might have to remap the network share from a particular location.

Also, don't forget to read the logs of each device carefully.

kx1
  • 19