# How do I remove a driver completely on a Windows XP client machine?

I have a client (XP SP3) machine where newer drivers have been installed.

Unfortunately while these (audio) drivers fixed mic boost, they have introduced problems such as no input working and random unnamed devices in applications that select the audio device. I need to revert the drivers.

However, rollback does not work (something about the drivers weren't backed up) and manually selecting the older driver is futile as XP just ignores it, stating, in its infinite wisdom, that the current driver is better and so I'd have no reason to want to use the older driver.

I know on printer drivers I can just delete - is there an option for other drivers?

Btw. I have done some research and can't seem to find a definite answer so I think this will be of help to plenty of others as well.

-

Windows uses a number of factors to decide what is the "best" driver, such as hardware ID matching (INFs that match more specific hardware IDs are "better"), driver date, driver version, and whether the driver is signed. How Setup Selects Drivers has the details if you're interested.

As for how to remove the newer driver, if it has an installer listed in Add/Remove Programs, then by all means use that. If not, you should be able to manually choose the older driver by right-clicking on the device in Device Manager, selecting "Update Driver...", "Install from a list or specific location", "Don't search. I will choose the driver to install", etc. Or did you already try that? (As well as selecting "Uninstall..."?)

If all else fails, you might have some success using the devcon command that ships with the Windows Driver Kit. You can remove a driver package using devcon dp_delete, or force Windows to choose a different driver using devcon update. There's also an older version of devcon available for direct download (the WDK is pretty large).

If you resort to manually deleting the driver's .inf file from %SystemRoot%\inf, be sure to delete the corresponding .pnf file as well, because Windows uses that to cache some/all of the .inf information.

-
Thanks - great answer. I tried the manual install first but I think it kind of just uninstalled the device not the driver->device attachment. Your answer is great though for when the standard approach fails. –  Graphain May 22 '09 at 6:40
-
Very useful stuff thanks. –  Graphain Sep 21 '09 at 20:40

You should find corresponding .inf file and delete it from windows\inf directory

-
Thanks - the related files will just then be ignored right? –  Graphain May 22 '09 at 6:39

The KB article that l0c0b0x mentioned includes a link to an API call that can be used on Windows XP and later (on Windows 2000 you delete .pnf and .inf files manually).

SetupUninstallOEMInf()

The SetupUninstallOEMInf function uninstalls a specified .inf file and any associated .pnf file. If the .inf file was installed with a catalog for signing drivers, the catalog is also removed. A caller of this function must have administrative privileges, otherwise the function fails.

-
Thanks helpful too. –  Graphain Sep 21 '09 at 20:41

Found this article elsewhere it seems to be a good solution to the Question: (How to remove a driver permanently) http://winhlp.com/node/199 . Its a bit old but still worked for me.

-

You might also want to use driversweeper to uninstall drivers. While it can't clear all drivers, it supports most of the often-troubling drivers.

-

Have tried devcon, but it says that there is no dp_delete command, and when investigating things I found a easier way.

As some people say, you can delete .inf and pnf. What they don't tell is how to locate those.

First, open device manager as administrator, right click on device and choose properties, on driver tab, click on details, and you would get the .sys filename of the driver.

Then you must locate the correct .inf and pnf to delete, they are not the same name as the .sys.

Follow instructions from http://winhlp.com/node/199 , which in brief are:

• cmd as admin, cd to inf folder: cd %windir%\inf
• Using the name of the .sys file (without the extension) instead of "WG311T", look for the inf file with:
• for %a in (oem*.inf) do find /i "WG311T" %a >>out.txt
• Open out.txt with notepad, and look which oem*.inf file is your driver.
• Delete .inf and .pnf oem file with (substitude "oemXX" for the name of oem file where your driver was found):
• attrib -h -r -s oemXX.*
• del oem12.* Reboot