How to uninstall a driver ?

Recently i need to uninstall a graphic driver to verify an issue. I uninstall it from the Program and Feature, it was uninstalled successfully .However wait for a moment, it was recovered in the Device Manager.It really make me confused, so i read the material from the internet and finally check the solution.

All the installed driver have been backup in the window OS, so even your driver will automatically recovered if uninstalled.The backup folder is C:\Windows\System32\DriverStore\FileRepository\ , if we want to clean one driver completely,should use the command ‘pnputil’.

Microsoft Windows [Version 10.0.17134.165]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>pnputil
Microsoft PnP Utility

PNPUTIL [/add-driver <…> | /delete-driver <…> |
/export-driver <…> | /enum-drivers | /?]

Commands:

/add-driver <filename.inf | *.inf> [/subdirs] [/install] [/reboot]

Add driver package(s) into the driver store.
/subdirs – traverse sub directories for driver packages.
/install – install/update drivers on any matching devices.
/reboot – reboot system if needed to complete the operation.

/delete-driver <oem#.inf> [/uninstall] [/force] [/reboot]

Delete driver package from the driver store.
/uninstall – uninstall driver package from any devices using it.
/force – delete driver package even when it is in use by devices.
/reboot – reboot system if needed to complete the operation.

/export-driver <oem#.inf | *> <target directory>

Export driver package(s) from the driver store into a target directory.

/enum-drivers

Enumerate all 3rd party driver packages in the driver store.

/?

Show this usage screen.

Legacy Commands:

[-i] -a <filename.inf> ==> /add-driver <filename.inf> [/install]
[-f] -d <oem#.inf> ==> /delete-driver <oem#.inf> [/force]
-e ==> /enum-drivers

Examples:

pnputil /add-driver x:\driver.inf <- Add driver package
pnputil /add-driver c:\oem\*.inf <- Add multiple driver packages
pnputil /add-driver device.inf /install <- Add and install driver package
pnputil /enum-drivers <- Enumerate OEM driver packages
pnputil /delete-driver oem0.inf <- Delete driver package
pnputil /delete-driver oem1.inf /force <- Force delete driver package
pnputil /export-driver oem6.inf . <- Export driver package
pnputil /export-driver * c:\backup <- Export all driver packages

C:\WINDOWS\system32>pnputil /enum-drivers
Microsoft PnP Utility

Published Name: oem12.inf
Original Name: ftdibus.inf
Provider Name: FTDI
Class Name: Universal Serial Bus controllers
Class GUID: {36fc9e60-c465-11cf-8056-444553540000}
Driver Version: 08/16/2017 2.12.28.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem13.inf
Original Name: ftdiport.inf
Provider Name: FTDI
Class Name: Ports (COM & LPT)
Class GUID: {4d36e978-e325-11ce-bfc1-08002be10318}
Driver Version: 08/16/2017 2.12.28.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem0.inf
Original Name: heci.inf
Provider Name: Intel
Class Name: System devices
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
Driver Version: 10/19/2010 7.0.0.1144
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem1.inf
Original Name: iusb3hub.inf
Provider Name: Intel(R) Corporation
Class Name: Universal Serial Bus controllers
Class GUID: {36fc9e60-c465-11cf-8056-444553540000}
Driver Version: 11/20/2015 4.0.3.49
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem3.inf
Original Name: iusb3xhc.inf
Provider Name: Intel(R) Corporation
Class Name: Universal Serial Bus controllers
Class GUID: {36fc9e60-c465-11cf-8056-444553540000}
Driver Version: 11/20/2015 4.0.3.49
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem18.inf
Original Name: vmci.inf
Provider Name: VMware, Inc.
Class Name: System devices
Class GUID: {4d36e97d-e325-11ce-bfc1-08002be10318}
Driver Version: 05/25/2016 9.8.6.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem15.inf
Original Name: vmusb.inf
Provider Name: VMware, Inc.
Class Name: Universal Serial Bus controllers
Class GUID: {36fc9e60-c465-11cf-8056-444553540000}
Driver Version: 07/12/2016 4.2.0.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem10.inf
Original Name: hpcu104u.inf
Provider Name: HP
Class Name: Printers
Class GUID: {4d36e979-e325-11ce-bfc1-08002be10318}
Driver Version: 06/18/2010 61.104.14.7798
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem7.inf
Original Name: igdlh64.inf
Provider Name: Intel Corporation
Class Name: Display adapters
Class GUID: {4d36e968-e325-11ce-bfc1-08002be10318}
Driver Version: 05/19/2016 9.17.10.4459
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem17.inf
Original Name: netadapter.inf
Provider Name: VMware, Inc.
Class Name: Network adapters
Class GUID: {4d36e972-e325-11ce-bfc1-08002be10318}
Driver Version: 09/27/2016 4.2.8.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem16.inf
Original Name: netbridge.inf
Provider Name: VMware, Inc.
Class Name: Network Service
Class GUID: {4d36e974-e325-11ce-bfc1-08002be10318}
Driver Version: 12/09/2016 4.2.8.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem19.inf
Original Name: prnhp001.inf
Provider Name: Microsoft
Class Name: Printers
Class GUID: {4d36e979-e325-11ce-bfc1-08002be10318}
Driver Version: 06/21/2006 6.1.7233.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem6.inf
Original Name: prnms001.inf
Provider Name: Microsoft
Class Name: Printers
Class GUID: {4d36e979-e325-11ce-bfc1-08002be10318}
Class Version: 4.0
Driver Version: 06/21/2006 10.0.17134.1
Signer Name: Microsoft Windows

Published Name: oem8.inf
Original Name: prnms006.inf
Provider Name: Microsoft
Class Name: Printers
Class GUID: {4d36e979-e325-11ce-bfc1-08002be10318}
Class Version: 4.0
Driver Version: 04/29/2013 16.0.1626.4000
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem9.inf
Original Name: prnms006.inf
Provider Name: Microsoft
Class Name: Printers
Class GUID: {4d36e979-e325-11ce-bfc1-08002be10318}
Class Version: 4.0
Driver Version: 11/29/2016 16.0.7629.4000
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem5.inf
Original Name: prnms009.inf
Provider Name: Microsoft
Class Name: Printers
Class GUID: {4d36e979-e325-11ce-bfc1-08002be10318}
Class Version: 4.0
Driver Version: 06/21/2006 10.0.17134.1
Signer Name: Microsoft Windows

Published Name: oem4.inf
Original Name: rt64win7.inf
Provider Name: Realtek
Class Name: Network adapters
Class GUID: {4d36e972-e325-11ce-bfc1-08002be10318}
Driver Version: 06/18/2013 7.73.618.2013
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem14.inf
Original Name: tecusbdex_x64.inf
Provider Name: TOSHIBA TEC
Class Name: TEC Bulk & Interrupt USB Device
Class GUID: {ce2456e6-f9a9-4102-abf4-2468db708044}
Driver Version: 12/18/2015 6.3.9600.16384
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem11.inf
Original Name: wdcsam.inf
Provider Name: Western Digital Technologies
Class Name: WD Drive Management devices
Class GUID: {8496e87e-c0a1-4102-9d8d-bd9a9b8b07a9}
Driver Version: 11/30/2017 1.2.0.0
Signer Name: Microsoft Windows Hardware Compatibility Publisher

Published Name: oem2.inf
Original Name: ws64win7.inf
Provider Name: Realtek
Class Name: Network adapters
Class GUID: {4d36e972-e325-11ce-bfc1-08002be10318}
Driver Version: 03/11/2016 7.99.311.2016
Signer Name: Microsoft Windows Hardware Compatibility Publisher

C:\WINDOWS\system32>pnputil /delete-driver oem7.inf /uninstall /force