Use this when devices aren't detected or configured automatically.
Plug and Play
Plug 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.
1. Kernel-PnP events.
2. Device enumerated? Get-PnpDevice -Class <class>.
3. Hot-plug: rescan pnputil /scan-devices.
4. Hidden/ghost devices: Device Manager → show hidden.
5. Driver match.
bus enumerates → PnP manager → driver installed and started
Context & applicabilityCommon mistakes · platform/version boundaries
- Devices stuck in "unknown device" because no INF matches the hardware ID.
- Wrong driver chosen because a generic driver ranks higher.
- Old devices from previous hardware still holding resources (hidden devices).
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Troubleshooting PnP Verify boundary
C:\Windows\INF\setupapi.dev.logrecords every device install with driver ranking.pnputil /scan-devicesre-enumerates hardware.- Event Viewer →
Microsoft-Windows-Kernel-PnP/Configuration. - Compare hardware IDs with the driver INF to see why a driver does not match.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Plug and Play picks the best-ranked signed driver available.
- Windows Update can supply drivers automatically.
- A rescan triggers detection again.
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
PnP process
1. Bus driver detects the device and reports hardware IDs.
2. PnP Manager searches the driver store for the best matching INF (most specific ID, newest signed driver).
3. Driver is installed and started; resources are assigned.
Logs: C:\Windows\INF\setupapi.dev.log shows exactly which driver was chosen and why installation failed.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Plug and Play detects devices, matches hardware IDs to driver INF files in the driver store, installs the best-ranked driver and starts the device. Ranking considers ID match quality, signature and date/version.
pnputil /scan-devices
pnputil /enum-devices /problem
Get-WinEvent -LogName Microsoft-Windows-Kernel-PnP/Configuration -MaxEvents 20
Detailed install logs: C:\Windows\INF\setupapi.dev.log — search for the hardware ID to see which INF was chosen and why.
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 → Plug and Play. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-hardware/drivers/ · confidence 94%