Saturday, March 3, 2018

How to uninstall a driver within Windows using pnputil

Windows has an utility named pnputil to list or uninstall installed drivers.  To create a list of current drivers, use the following command within an elevated command prompt.

pnputil.exe –e > c:\temp\driverexport.txt

image

image

To remove an existing driver, use the following command.

pnputil.exe –d oem_number.inf

image

If an error is returned, add a –f switch.

pnputil.exe –f –d oem_number.inf

In addition to finding the OEM number value within the .TXT file, the same value can be found via Device Manager –> Properties –> Details tab –> INF Name drop-down value.

image

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.