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
- PnPUtil is Windows' built-in command-line device and driver tool
- 1. Enumerate devices before changing anything
- 2. Inspect the drivers that match one device
- 3. Restart one device without rebooting the whole PC
- 4. Enable a device from the command line when appropriate
- 5. Rescan hardware when detection state has changed
- 6. Keep device state separate from driver-package management
- 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.
| Goal | PnPUtil operation | What it does |
|---|---|---|
| List connected devices | enum-devices with connected filter | Read-only device inventory |
| Show problem devices | enum-devices with problem filter | Read-only problem-device inventory |
| Inspect matching drivers | enum-devices with instance and drivers options | Shows driver candidates for one device |
| Restart one device | restart-device | Restarts the targeted device |
| Enable one device | enable-device | Enables the targeted device |
| Rescan Plug and Play | scan-devices | Requests 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.
Related
Continue from here
Useful next steps selected from the same technical reference and publication system.
Technical guide
Windows 11 Apps Keep Crashing or Closing: Diagnose One App vs System-Wide Failures
Diagnose Windows 11 apps that crash or close unexpectedly by separating one-app faults from broader driver, startup-software, system-file, memory, and stability problems.
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.
Troubleshooting
Windows 11 Blue Screen (BSOD) Troubleshooting: Stop Codes, Dump Files, Drivers, Memory, and Hardware
Diagnose recurring Windows 11 stop-code crashes by preserving bug-check evidence, checking dump files and recent changes, then isolating drivers, software, firmware, memory, and hardware instability.
Technical guide
How to Roll Back a Device Driver in Windows 11: Device Manager, Previous Packages, Recovery, and Verification
Safely roll back a problematic Windows 11 device driver, handle an unavailable rollback button, use supported previous packages, and verify the result.