Use this when a device is missing, shows an error in Device Manager, or a driver causes crashes.
Drivers & Devices
Windows drivers and devices covers Plug and Play detection, Device Manager, the driver store, driver signing and hardware IDs — how Windows finds, installs and loads the right driver for each device.
1. Get-PnpDevice -PresentOnly | ? Status -ne 'OK'.
2. Problem code (Device Manager): 10, 28, 43…
3. Driver version and source.
4. Update/roll back/reinstall.
5. Verify device works.
device detected → hardware ID → driver matched → installed → started
Context & applicabilityCommon mistakes · platform/version boundaries
- Using Device Manager only, missing hidden or non-present devices.
- Installing drivers without restore points or rollback plans.
- Ignoring driver dates and versions when comparing machines.
Operational reference
Fast context before you go deeper.
pnputilPrimary Commands
Configuration and operational commands for this Topic.
Subtopics
Go one level deeper into this subject.
Device Manager (devmgmt.msc) shows all hardware with status codes, driver details and hardware IDs, and lets you update, roll back, disable or uninstall drivers.
Subtopic Plug and PlayPlug and Play detects hardware when it appears, reads its hardware IDs, picks the best signed driver from the driver store or Windows Update, and allocates resources without manual configuration.
Subtopic Device DriversDevice drivers are kernel or user-mode modules that let Windows talk to hardware.
Subtopic Driver StoreThe driver store (C:\Windows\System32\DriverStore) holds staged driver packages that Windows can install without media.
Subtopic Driver SigningDriver signing requires drivers to be digitally signed, and 64-bit Windows only loads kernel drivers signed by Microsoft's attestation or WHQL process.
Subtopic Hardware IDsHardware IDs identify a device by vendor and product, such as PCI\VEN_8086&DEV_15F3.
Subtopic Driver TroubleshootingTroubleshoot drivers with Device Manager error codes, rolling back recent drivers, checking hardware IDs against the vendor's package, setupapi.dev.log, crash dumps from blue screens and Driver Verifier for unstable drivers.
- Error code in Device Manager points to the cause.
- Newer driver ≠ better driver.
- Unsigned kernel drivers won't load.
Get-PnpDevice -PresentOnly | ? Status -ne 'OK'— devices with problemspnputil /enum-drivers— driver store packagesGet-PnpDeviceProperty -InstanceId <id> -KeyName DEVPKEY_Device_DriverVersion— driver versionGet-WinEvent -LogName Microsoft-Windows-Kernel-PnP/Configuration -MaxEvents 20— PnP install events
ReferenceWhy it matters1 section · depth on demand
Device and driver tools
| Tool | Use |
|---|---|
Device Manager (devmgmt.msc) | Status, drivers, resources |
pnputil /enum-devices /problem | Devices with problems |
pnputil /add-driver *.inf /install | Add drivers |
driverquery /v | Loaded drivers |
Get-PnpDevice -Status Error | PowerShell device status |
| Event log Kernel-PnP | Install/start errors |
ReferenceHow it works2 sections · depth on demand
Built-in tools
| Tool | Use |
|---|---|
Device Manager (devmgmt.msc) | Status, drivers, hidden devices |
pnputil | Driver store, devices |
driverquery | Loaded drivers |
System Information (msinfo32) | Problem devices, conflicts |
| Reliability Monitor | Driver crashes over time |
In depth
Driver management overview:
| Task | Tool |
|---|---|
| Inventory | Get-PnpDevice, pnputil /enum-drivers, driverquery /v |
| Install | pnputil /add-driver *.inf /install, vendor packages |
| Update source | Windows Update (can be excluded by policy), vendor tools, ConfigMgr/Intune driver management |
| Roll back | Device Manager → Driver → Roll Back |
| Remove from store | pnputil /delete-driver oem12.inf /uninstall |
On servers, use the hardware vendor's validated driver/firmware bundles (Dell DSU, HPE SPP, Lenovo XClarity) rather than individual drivers from Windows Update.
ReferenceConfiguration & state1 section · depth on demand
Commands
pnputil /enum-devices /problem
pnputil /enum-drivers
Get-PnpDevice -PresentOnly | Where-Object Status -ne OK
driverquery /v
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Drivers & Devices. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-hardware/drivers/ · confidence 94%