0X000008EB

Fix NERR_NameInUse Error 0X000008EB on Windows Server

The NERR_NameInUse error 0X000008EB means another machine on the network is already using the server's computer name. Here's how to track down the duplicate and fix it fast.

What Actually Triggers Error 0X000008EB

I've seen this error pop up most often on Windows Server 2016 and 2019 after a network change — maybe you renamed a machine, recovered from a crash, or cloned a VM without sysprepping it. The server boots up, tries to register its name on the network, and someone else already owns it. The error text reads: The message alias is currently in use (NERR_NameInUse), and you'll see it in the System event log with ID 4321 and source NETLOGON.

Here's the thing: this isn't always a live machine. Sometimes the "owner" is a stale entry in the WINS database or an old cache. Let me walk you through the three most common causes and how to squash each one.

Cause #1: Another Machine Is Actually Using the Same Name

This is the most frequent scenario. You renamed ServerA to ServerB, but ServerB is still out there with the old name. Or you cloned a VM and forgot to run sysprep /generalize, so the clone boots up with the same NetBIOS name as the original.

How to find the duplicate:

  1. Open Command Prompt as Administrator on the affected server.
  2. Run: nbtstat -n. This shows all local NetBIOS names and their status. Look for the name that has a status of Registered but also shows Conflict in the same line. That's your culprit.
  3. Now run: nbtstat -a (replace with the actual computer name). If it returns a different IP address than your own, that's the machine stealing the name.

Once you have the IP, check if it's a known machine on your network. If it's a production server, coordinate with the admin to rename or shut it down. If it's a stale ghost (maybe a VM that was deleted but left an orphaned record), move to the next fix.

Quick fix for a forgotten clone: If you know this is a cloned VM, the real fix is to run sysprep /generalize /oobe /shutdown before booting the clone. But if it's already booted, you can temporarily rename the machine: go to System Properties > Computer Name > Change, enter a temporary name like TEMP-SRV-01, reboot, then change it back to your desired name. This forces a new NetBIOS registration.

Cause #2: Stale WINS Database Entry

If you're still using WINS (and some of you are — I know), a stale entry can cause this error even when that machine no longer exists. The server tries to register its name, but WINS says "Sorry, that's taken."

I've personally fixed this on a Server 2012 R2 box where a decommissioned Exchange server's name was still in WINS six months later.

How to clear it:

  1. Open the WINS console (winsmgmt.msc).
  2. Expand Active Registrations.
  3. Search for your computer name. You'll likely see it with a different IP address.
  4. Right-click the stale entry and select Delete. Confirm the deletion.
  5. Back on your server, open an admin command prompt and run: nbtstat -RR (release and refresh all NetBIOS names). This forces it to re-register.
  6. Wait 30 seconds and run nbtstat -c to verify the name cache now shows your correct IP.

No WINS server? If you're using DNS and NetBIOS over TCP/IP is enabled, the conflict might be cached locally. On the affected server, run: net stop netbt & net start netbt. This restarts the NetBIOS over TCP/IP service and flushes the cache.

Cause #3: Registry Has a Stale Entry from a Previous Name

This one's sneaky. When you rename a server, not every registry key updates cleanly. The HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters key still holds old name references that conflict with the new one.

How to check and fix:

  1. Open Regedit as Administrator.
  2. Go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName. Verify ComputerName matches what you want.
  3. Now go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters. Look for a value named OptionalNames or ServerComment that contains an old name. If there's an old name in OptionalNames, that's the conflict.
  4. Delete any value that references an old name. Be careful — only remove entries you're sure are stale. Backup the key first: right-click > Export.
  5. Close Regedit and restart the server.

Why this happens: When you rename a machine via System Properties, Windows updates ActiveComputerName but sometimes leaves old aliases behind in LanmanServer. The server then tries to register both names, and if the old name is still out there, you get 0X000008EB.

Quick-Reference Summary Table

CauseDiagnosisFix
Duplicate live machinenbtstat -a shows different IPRename one machine or shut it down
Stale WINS entryWINS console shows old IPDelete entry, run nbtstat -RR
Registry leftover nameOptionalNames in registry has old nameDelete old name entry in registry, reboot

That should get your server back online without the name conflict. If none of these work, you're probably dealing with a multicast DNS issue or a stubborn broadcast — try temporarily disabling NetBIOS over TCP/IP on all network adapters (Network Settings > IPv4 Properties > Advanced > WINS tab > Disable NetBIOS over TCP/IP) and see if the error stops. If it does, you'll need to trace which device responds to NetBIOS broadcasts.

Related Errors in Windows Errors
0XC0000287 Fix 0xC0000287: STATUS_REINITIALIZATION_NEEDED Device Error 0XC00D001B NS_E_FILE_EXISTS (0XC00D001B) – File Already Exists Fix 0X80110820 COMADMIN_E_CANNOT_ALIAS_EVENTCLASS (0X80110820) Fix 0XC000A101 STATUS_HASH_NOT_PRESENT (0XC000A101) - Quick Fix & Why

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.