On our computers, we use daily dozens of different usb drives from our customers.
This is bad because the registry hive is becoming huge as windows is so "smart" to save them forever
I set devmgr_show_nonpresent_devices=1
and i saw thousands of usb flash drives
There is a software that will automagically delete all previous devices?
Also this will solve a lot of problems with scanners and printers that will be seen as another device just because the user has plugged in another usb plug
Try USBDeview from NirSoft. From the website:
The interface supports sorting and multiple select and remove. Download here
Microsoft has a command line utility called DevCon which may do what you need.
List present and non-present USB devices:
Remove all USB devices:
Proceed with caution. You might need to do a
devcon rescan
or even adevcon reboot
afterwards.For storage volumes (USB drives) the Regisry Key is
A little testing revealed that Non present devices have '??' in the key name. One could write a simple program or script to cycle through the key names and delete the ones that have '??'.