Skip to content

Remove hidden Windows devices after capture and USB display testing

::: note Download Download RemoveHiddenDevices.exe (~8 MB; Windows test environments only)

Graphical bulk removal of hidden (phantom) devices in Device Manager. Run as administrator and review the list before confirming. UltraSemi does not warrant code signing or compatibility with every Windows build—use at your own risk. :::

Repeated plug/unplug cycles while validating USB capture cards, USB display adapters, or firmware builds on Windows often leave behind non-present (phantom) devices. Symptoms include:

  • A long list of grayed-out entries in Device Manager;
  • Slower boot, resume, or re-enumeration;
  • Occasional duplicate USB ports or “Unknown device” noise.

This article explains how to view hidden devices in Device Manager and how to batch-clean them with tools such as RemoveHiddenDevices.exe.

Why hidden devices accumulate

Windows keeps PnP records for hardware that was ever connected unless you explicitly uninstall before unplugging. Test benches accumulate entries quickly:

ScenarioTypical leftovers
USB capture (UVC/UAC)Cameras, audio endpoints, composite USB nodes
USB display / castingMonitors, USB Display class nodes, graphics children
Driver / firmware churnMultiple driver versions per VID/PID, duplicate COM ports

They may not fail immediately, but large lists add PnP work and can make the system feel sluggish.

Show hidden devices in Device Manager

Method 1: Menu (Windows 10 / 11)

  1. Press Win + XDevice Manager, or run devmgmt.msc.
  2. View → Show hidden devices.
  3. Expand Universal Serial Bus controllers, Cameras, Sound, video and game controllers, Display adapters, Portable Devices, etc.
  4. Disconnected ghosts usually appear with a faded/gray icon.

Method 2: Environment variable

In an elevated Command Prompt or PowerShell:

bat
set DEVMGR_SHOW_NONPRESENT_DEVICES=1
devmgmt.msc

Then enable View → Show hidden devices. This matches Microsoft’s documented approach for non-present devices.

Remove one device manually

Right-click a gray entry you no longer need → Uninstall device. Optionally check “Attempt to remove the driver” only when you are sure that driver revision is obsolete on a test PC.

Batch cleanup with RemoveHiddenDevices

RemoveHiddenDevices.exe presents a selectable list of hidden devices for bulk removal—useful on dedicated test machines. Get the executable from the Download note at the top of this page.

  1. Close apps that hold USB capture or display devices open.
  2. Download RemoveHiddenDevices.exe from the note at the top into a local folder.
  3. Run as administrator.
  4. Review the list carefully—select only stale test leftovers, not active keyboard/mouse/capture/display nodes.
  5. Apply removal, then Action → Scan for hardware changes in Device Manager; reboot if needed.

Caution: Bulk tools can remove the wrong entry. Create a restore point on important systems. The copy hosted here is for test-bench convenience only; UltraSemi does not warrant code signing or compatibility with every Windows build. Use at your own risk.

Alternatively, administrators can remove Unknown PnP devices via pnputil /remove-device in PowerShell (with class filters). Community scripts such as removeGhosts.ps1 follow the same idea.

After cleanup

  • Rescan hardware and re-plug the capture card or USB display under test.
  • If a port misbehaves, try another port or reboot before deeper driver debugging.
  • Schedule periodic cleanup on busy test benches.

References

Ultrasemi Technology Development Co., Ltd.
Contact us for audio/video product solutions and IC selection support.
Email: doc@ultrasemi.com · QQ: 2272715136

Ultrasemi Technology Development Co., Ltd.
Contact us for audio/video product solutions and IC selection support.
Email: doc@ultrasemi.com · QQ: 2272715136