0X800F0202

SPAPI_E_DUPLICATE_FOUND 0x800F0202 fix

Windows Errors Intermediate 👁 7 views 📅 Jun 12, 2026

This error pops up when Windows finds a duplicate device entry during manual driver install. Happens with USB hubs, docks, or broken device IDs.

You're on Windows 10 or 11, plugging in a USB-C dock or an external GPU, and you try to manually add a driver through Device Manager. But instead of a clean install, you get this error: SPAPI_E_DUPLICATE_FOUND (0x800F0202). The message says "An existing device was found that is a duplicate of the device being manually installed."

What's actually happening here is that Windows already knows about this device — it saw it before, probably from a previous connection, a different dock, or a broken plug-and-play handshake. The old entry is still in the system's device tree, but it's not visible in the default Device Manager view. When you try to install a driver for what Windows thinks is a new device, it sees the old entry and refuses to create a duplicate. The fix isn't complicated — you just need to make Windows forget the ghost copy.

What causes this

Windows keeps a database of every device it's ever seen, organized by hardware ID, instance ID, and bus location. Normally, when you unplug a device, Windows marks the entry as phantom and hides it. Problems start when:

  • You use a USB hub or dock — the same physical device can appear under different ports, each creating a separate entry.
  • A driver update or manual install fails mid-way, leaving a half-baked entry.
  • The device hardware IDs change slightly (e.g., a firmware update alters the revision code), so Windows sees a new ID but also keeps the old one.
  • You reinstall the same device on a different USB port — Windows sometimes doesn't clean up the old instance.

The fix: remove the hidden duplicate

You need to find and delete the phantom device entry. This is not through devmgmt.msc normally — you have to reveal hidden devices first.

  1. Open Device Manager — press Win + X and select Device Manager. Or just run devmgmt.msc.
  2. Show hidden devices — from the top menu, click View and enable Show hidden devices. This reveals all those phantom entries Windows normally keeps secret.
  3. Locate the phantom device — look under System devices or the device category that matches what you're trying to install. You'll see entries that are greyed out — those are the ghosts. They often have names like USB Root Hub, Generic USB Hub, or the device vendor name followed by a weird suffix.
  4. Check the hardware ID — right-click the greyed-out device, go to PropertiesDetails tab → select Hardware IDs from the dropdown. Compare it with the device you're actually trying to install. If the IDs match (or are very close), that's your duplicate.
  5. Delete the phantom — right-click that greyed entry and choose Uninstall device. Check the box "Delete the driver software for this device" if you want to be thorough. This removes the entry from the registry.
  6. Scan for hardware changes — click ActionScan for hardware changes. This forces Windows to re-enumerate all devices and properly detect the one you were trying to manually install.
  7. Retry your manual install — run your Add Legacy Hardware wizard or Update Driver again. This time, no duplicate error.

If it still fails

Sometimes one phantom isn't the only problem. A few edge cases:

  • Multiple ghost entries — docks and multi-port hubs can leave 3-4 grey entries under different bus numbers. Delete them all. Use the Hardware IDs trick to confirm they're the same device family.
  • Corrupt driver store — run DISM /Online /Cleanup-Image /RestoreHealth in an admin command prompt. Then run sfc /scannow. This repairs the OS driver database, which may be holding stale references.
  • Registry persistent entries — if deleting via Device Manager doesn't stick, open regedit and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB and HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR. Look for keys matching your device's VID/PID (e.g., VID_XXXX&PID_XXXX). Right-click and delete that whole key. This is aggressive — only do it if the Device Manager method fails, because it can break other USB devices if you delete the wrong key.
  • Different USB port — sometimes the simplest fallback: unplug the device from the dock, plug it directly into a laptop USB port. A direct connection avoids the bus topology confusion that creates duplicates.

Why this works

The reason step 3 works is that Windows uses the instance ID (a combination of bus number, port number, and device serial) to uniquely identify each device. When you plug a device into dock port 1 then later into port 2, you get two different instance IDs for the same physical hardware. The manual install wizard doesn't know which one to overwrite, so it throws the duplicate error. Deleting the phantom removes the old instance ID, letting the wizard create a fresh mapping.

One more thing — if you're using a USB-C dock, consider updating the dock's firmware. I've seen specific docks (like Dell WD19 or CalDigit TS3) flood Windows with duplicate entries because their USB controller doesn't report disconnects properly. A firmware update usually fixes that at the source.

Was this solution helpful?