Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Plug and Play

Direct answer

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.

When to use this

Use this when devices aren't detected or configured automatically.

First 30 seconds

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.

Operational verification

bus enumerates → PnP manager → driver installed and started

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common problems
  • 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).
Platform / version applicability
Windows servicing, deployment and recovery
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows servicing, deployment and recovery
Scope / prerequisiteUse this when devices aren't detected or configured automatically.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Troubleshooting PnP Verify boundary
  • C:\Windows\INF\setupapi.dev.log records every device install with driver ranking.
  • pnputil /scan-devices re-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 references

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.

observation · 1
Key points
  • Plug and Play picks the best-ranked signed driver available.
  • Windows Update can supply drivers automatically.
  • A rescan triggers detection again.
Key checks
  • Get-PnpDevice -PresentOnly | ? Status -ne 'OK' — devices with problems
  • pnputil /enum-drivers — driver store packages
  • Get-PnpDeviceProperty -InstanceId <id> -KeyName DEVPKEY_Device_DriverVersion — driver version
  • Get-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows servicing, deployment and recovery current

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%
Confirmation

Confirm action

Continue?