Skip to content

PNPUTIL command in Windows

The PNPUTIL command in Windows allows users to manage device drivers effortlessly. From adding new drivers to removing old ones, and listing all currently installed drivers, PNPUTIL provides a convenient way to handle driver management tasks. The command can be run from the Command Prompt or PowerShell, making it accessible to both novice and advanced users. Whether you need to troubleshoot driver issues or simply want to keep your system up to date, PNPUTIL is a valuable tool in the Windows environment.

PNPUTIL Syntax:

Terminal window
pnputil [options] [parameters]

Windows PNPUTIL Options:

OptionDescription
-aAdd a driver package to the driver store.
-dDelete a driver package from the driver store.
-eEnumerate all 3rd party driver packages.
-fForce the operation to succeed when the driver package is unsigned.
-iInstall a driver package.
-uUninstall a driver package.
-yQuiet mode, do not ask for confirmation.
-?Display help.

PNPUTIL Parameters:

ParameterDescription
/?Display help information.
/add-driverInstall a driver package.
/delete-driverDelete a driver package.
/disableDisable a device.
/enableEnable a device.
/enum-driversEnumerate all 3rd party drivers.
/export-driverCopy the driver files from the driver store to a specified directory.
/import-driverCopy the driver files to the driver store.
/installInstall a driver package.
/updateUpdate a device.
/uninstallUninstall a device and delete the driver package.

How to use PNPUTIL command:

List all driver packages

Terminal window
pnputil /enum-drivers

This command lists all driver packages currently in the driver store.

Add a driver package to the driver store

Terminal window
pnputil /add-driver C:\Path\to\Driver\driver.inf

Adds a driver package located at the specified path to the driver store.

Remove a driver package from the driver store

Terminal window
pnputil /delete-driver DriverPackageName.inf

Deletes a specific driver package from the driver store using its name.

Import a driver package to the driver store

Terminal window
pnputil /add-driver C:\Path\to\Driver\driver.inf /install

Imports and installs a driver package from the specified path to the driver store.

Scan for new hardware

Terminal window
pnputil /scan-devices

Initiates a scan to detect new hardware devices on the system.

List all published driver packages

Terminal window
pnputil /enum-published-drivers

Displays a list of all published driver packages in the driver store.

List devices with a driver package

Terminal window
pnputil /enum-devices

Lists all devices along with their associated driver packages in the driver store.

Remove all driver packages

Terminal window
pnputil /delete-driver * /uninstall

Removes all driver packages from the driver store, effectively uninstalling all drivers.

How do I use pnputil to list all the drivers on my system?

To list all the drivers on your system using pnputil, run the following command:

Terminal window
pnputil /e

How can I add a driver package using pnputil?

To add a driver package using pnputil, use the following command:

Terminal window
pnputil /a <driverinf>

How do I uninstall a driver package with pnputil?

To uninstall a driver package with pnputil, execute the command:

Terminal window
pnputil /d <OEM*.INF>

Can I export a driver package with pnputil?

Yes, you can export a driver package using pnputil by running the command:

Terminal window
pnputil /e /f <path\to\exported\folder>

How do I search for a specific driver package with pnputil?

To search for a specific driver package using pnputil, use the following command:

Terminal window
pnputil /f /s <keyword>

How can I get detailed information about a driver package with pnputil?

To get detailed information about a driver package with pnputil, run the command:

Terminal window
pnputil /a <driverinf> /?

Can I force an update of a driver package using pnputil?

Yes, you can force an update of a driver package with pnputil by running the command:

Terminal window
pnputil /i /a <driverinf> /f

How do I remove all driver packages in the driver store with pnputil?

To remove all driver packages in the driver store using pnputil, execute the following command:

Terminal window
pnputil /delete-driver *

Applications of the PNPUTIL Command

  • Add a driver package to the driver store
  • List all driver packages in the driver store
  • Delete a driver package from the driver store
  • Enable or disable specific driver packages
  • Export a driver package from the driver store
  • Import a driver package into the driver store
  • Show information about a specific driver package in the driver store