Technical guide

How to Manage Devices with PnPUtil in Windows 11

Use Windows 11 PnPUtil to enumerate, restart, enable, rescan, and inspect devices with Microsoft's built-in administration tool.

On this page
  1. PnPUtil is Windows' built-in command-line device and driver tool
  2. 1. Enumerate devices before changing anything
  3. 2. Inspect the drivers that match one device
  4. 3. Restart one device without rebooting the whole PC
  5. 4. Enable a device from the command line when appropriate
  6. 5. Rescan hardware when detection state has changed
  7. 6. Keep device state separate from driver-package management
  8. Use PnPUtil for precise administration, not blind driver cleanup

PnPUtil is Windows' built-in command-line device and driver tool

PnPUtil.exe is included with Windows and provides supported commands for enumerating devices and driver packages, restarting devices, enabling devices, rescanning Plug and Play hardware, and adding or exporting driver packages. It can expose the exact device instance you are acting on instead of relying on a generic third-party driver utility.

Most device-changing operations require an elevated terminal. Start with read-only enumeration, identify the intended device precisely, and only then run a state-changing command. Avoid broad filters unless you deliberately intend to affect every matching device.

1. Enumerate devices before changing anything

Open Windows Terminal or Command Prompt as administrator. PnPUtil can enumerate currently connected devices, disconnected devices, or devices reporting a problem code. Start there rather than guessing which entry belongs to the hardware you are troubleshooting.

The important identifier for targeted operations is the device instance ID. Record the instance ID and device description before changing state. Similar devices can share a hardware ID while still having different instance IDs, so targeting one known instance is the safer default.

2. Inspect the drivers that match one device

On current Windows 11 releases, PnPUtil can show matching and installed driver information for a specific device. Microsoft's documented enum-devices operation accepts an instance-ID filter and a drivers option for this purpose.

This matters when several driver packages can match a device. Microsoft notes that adding a driver with PnPUtil does not force it onto a device when that package is not the highest-ranked match. Inspecting the candidates is therefore more informative than assuming that copying a newer INF into the Driver Store automatically makes Windows use it.

3. Restart one device without rebooting the whole PC

PnPUtil's restart-device operation asks Windows to restart a targeted device. Microsoft documents this operation starting with Windows 10 version 2004, with additional filtering options added in later Windows releases.

A successful device restart can be a useful bounded test for adapters and peripherals, but it is not guaranteed to recover every device. Some operations may still require a system reboot, and restarting a device that provides networking, display, input, storage, or another active function can interrupt work. Save important work first.

4. Enable a device from the command line when appropriate

PnPUtil provides an enable-device operation for Plug and Play devices. This changes the targeted device's enabled state; it is not a driver reinstall and it does not replace diagnosis of why a device became unavailable.

Use the exact device instance when the goal is one device. Broader class, bus, or device-ID filters can match multiple devices, so they are better reserved for deliberate administrative workflows where the scope is understood.

Useful PnPUtil device operations
GoalPnPUtil operationWhat it does
List connected devicesenum-devices with connected filterRead-only device inventory
Show problem devicesenum-devices with problem filterRead-only problem-device inventory
Inspect matching driversenum-devices with instance and drivers optionsShows driver candidates for one device
Restart one devicerestart-deviceRestarts the targeted device
Enable one deviceenable-deviceEnables the targeted device
Rescan Plug and Playscan-devicesRequests a hardware-change scan

5. Rescan hardware when detection state has changed

The scan-devices operation requests a scan for hardware changes. This can be useful after a device, driver, or connection change when you want Windows Plug and Play to enumerate current hardware again without navigating Device Manager.

A rescan cannot make physically absent, unpowered, incompatible, or failed hardware work. If a USB device never enumerates, a PCIe card is absent at the firmware or bus level, or a cable does not carry the required signal, repeatedly rescanning Windows does not fix the lower layer.

6. Keep device state separate from driver-package management

PnPUtil also manages driver packages through separate add, delete, enumerate, and export operations. Those operations concern packages in the Windows driver workflow and should not be confused with simply restarting or enabling a device.

Do not remove driver packages as a generic troubleshooting ritual. Removing a package can affect devices that depend on it. If the problem began after a driver update, use the supported rollback or vendor recovery path when appropriate; if you need a backup before reinstalling Windows, export the third-party packages instead.

Use PnPUtil for precise administration, not blind driver cleanup

PnPUtil is most useful when you know which device or package you are investigating and want a supported, scriptable Windows interface. Start with enumeration, preserve identifiers and problem codes, make one bounded change, then verify whether the symptom changed.

Device Manager, Windows Update, the hardware vendor's supported package, and PnPUtil operate at different parts of the device-and-driver lifecycle. The right tool depends on the evidence you have, not on a universal driver-cleanup recipe.

Sources

Primary and technical sources

Technical details can vary by exact model, firmware, and platform. These are the sources used for the factual claims in this article.

  1. 01 Microsoft Learn

    PnPUtil command syntax, device and driver-package operations, version availability, and driver ranking note
  2. 02 Microsoft Learn

    PnPUtil examples for enumerating, restarting, enabling, rescanning, and managing drivers and devices

Related

Technical guide

How to Back Up Installed Drivers in Windows 11

Export third-party driver packages from the Windows 11 driver store with PnPUtil, preserve them before a reinstall, and understand what the backup does and does not contain.