[Q] How to get Windows to forget a failed driver install on a USB device.

Soldato
Joined
4 Sep 2005
Posts
2,794
I had a problem this afternoon trying to get my Logitech Harmony to connect on a USB device and a couple of failed attempts on different USB ports later, I decided to set the cable up on my HTPC instead and did it from there.

What I would like to know though; is how to remove failed driver installs on particular USB slots. The reason being, if I cycled the device to a new port, it would attempt to reinstall drivers but if I put it back in a previously failed port, it would just sit there unresponsive.

Ideas welcome please. :)
 
This should do the trick:-
From a DOS prompt enter the following commands
set devmgr_show_nonpresent_devices=1
devmgmt.msc

Once in Device Manager, from the View menu select "Show hidden devices"

Look for devices where the icon is "dimmed" these should be the devices that aren't currently connected, you can double check, by double click on them, in Device status it should show "Currently, this hardware device is not connected to the computer"

With a few exceptions it should be safe to delete those devices, but please be very careful, it entirely possible that you could bork Windows by deleting the wrong devices.
 
Delete the file infcache.1 from C:\Windows\System32\DriverStore

You will need to take ownership of it and assign full privileges to it first.
 
Delete the file infcache.1 from C:\Windows\System32\DriverStore

You will need to take ownership of it and assign full privileges to it first.

I am logged in as admin so should I not just be able to delete it? Will it give me a message of what I need to do if I am unable to delete it?

Thanks for the replies guys. I tried the other suggestions but nothing showed as greyed out in the device manager even though I kept the cmd window open as instructed.
 
Back
Top Bottom