PnPUtil Examples

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

  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
  pnputil /disable-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"      <- Disables device specified by device instance ID
  pnputil /enable-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"       <- Enables device specified by device instance ID
  pnputil /restart-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"      <- Restarts device specified by device instance ID
  pnputil /remove-device "USB\VID_045E&PID_00DB\6&870CE29&0&1"       <- Removes device specified by device instance ID
  pnputil /scan-devices                                              <- Scan the system for any device hardware changes
  pnputil /enum-devices /connected                                   <- Enumerate only connected devices on the system
  pnputil /enum-devices /instanceid "ACPI\PNP0A08\1"                 <- Enumerate device with specific instance ID
  pnputil /enum-devices /class Display                               <- Enumerate all devices with specific class
  pnputil /enum-devices /problem 28                                  <- Enumerate all devices with specific problem code
  pnputil /enum-devices /problem /ids                                <- Enumerate all devices with problems and display hardware/compatible IDs
  pnputil /enum-interfaces /enabled                                  <- Enumerate only enabled interfaces on the system