(AI translated)
If you happen to be involved in USB device design and frequently connect unsuccessful experiments, Windows secretly accumulates unnecessary information. Later, when connecting a “Generic” printer, there’s an issue – it’s unclear which port works:

Ghosts Only one of them is real. All the others are remnants from improperly programmed devices. However, Windows itself somehow does not allow these ports to be removed. Other ports can be removed, but these are blocked.
Even if you mark to show “hidden” devices in “Device Manager,” so many ports are not visible.
But there’s a trick:

Ghosts Here, an additional system variable is recorded. Then “Device Manager” starts showing all the “ghosts.” The variable is called “devmgr_show_nonpresent_devices.”

Ghosts The picture is rotated because it turns out too long.
Now you can gradually start uninstalling them. Unfortunately, you can’t delete them in bulk.