PnPUtil Examples

This topic provides examples on how to use the PnPUtil tool.

Add driver package
pnputil /add-driver x:\driver.inf                                  
Add multiple driver packages
pnputil /add-driver c:\oem\*.inf                                   
Add and install driver package
pnputil /add-driver device.inf /install                            
Enumerate OEM driver packages
pnputil /enum-drivers                                              
Delete driver package
pnputil /delete-driver oem0.inf                                    
Force delete driver package
pnputil /delete-driver oem1.inf /force                             
Export driver package
pnputil /export-driver oem6.inf .                                  
Export all driver packages
pnputil /export-driver * c:\backup                                 
Disables device specified by device instance ID
pnputil /disable-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"      
Enables device specified by device instance ID
pnputil /enable-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"       
Restarts device specified by device instance ID
pnputil /restart-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"      
Removes device specified by device instance ID
pnputil /remove-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"       
Scan the system for any device hardware changes
pnputil /scan-devices                                              
Enumerate only connected devices on the system
pnputil /enum-devices /connected                                   
Enumerate device with specific instance ID
pnputil /enum-devices /instanceid "ACPI\PNP0A08\1"                 
Enumerate all devices with specific class
pnputil /enum-devices /class Display                               
Enumerate all devices with specific problem code
pnputil /enum-devices /problem 28                                  
Enumerate all devices with problems and display hardware/compatible IDs
pnputil /enum-devices /problem /ids                                
Enumerate only enabled interfaces on the system
pnputil /enum-interfaces /enabled