Posts

Showing posts from August, 2009

Remove USB devices from the registry

When messing about with USB devices you can end up with a lot of junk in the registry. If you plug a device into different USB hub ports or, worse, have several of the same device attached at once things can get really bad. If your devices don't have a unique serial number then Windows can't tell what devices it's seen before. The effect is that every time a device is plugged into a 'new' port, the driver will be re installed! if, like me, you have a lot of USB hubs and devices (24+ here) your PC can get unstable and crash. When I moved to putting a unique serial number on my devices I hit a problem... Windown won't recognise the serial number if it has previously seen a device with the same VID, PID combination that did NOT have a valid serial number... Again, that means needing to clear the registry: First, unplug the USB devices then: Run : regedit.exe Navigate to: HKEY_Local_Machine -> System -> CurrentControlSet -> Enum -> USB Now delete all the