Why This Error Happens
Error 620 (ERROR_PNP_INVALID_ID) occurs when the Windows Plug and Play (PnP) Manager tries to read or write a device instance path in the registry that is malformed, truncated, or points to a non-existent enumeration branch. This is typically caused by corrupted entries under HKLM\SYSTEM\CurrentControlSet\Enum, leftover “ghost” device entries from improperly uninstalled hardware, or a third-party driver installer/setup script passing a badly formatted device ID string to the PnP subsystem. It can also surface if the Windows driver store or PnP database itself has become corrupted after a failed update or driver installation.
Step-by-Step Resolution Guide
- Create a System Restore Point before making changes:
- Open Control Panel > System > System Protection > Create, and name it “Pre-PnP-Fix”.
- Remove Ghost/Orphaned Devices in Device Manager:
- Open Device Manager (
devmgmt.msc). - Click View > Show hidden devices.
- Expand each category and look for grayed-out (ghosted) devices.
- Right-click each ghost device and select Uninstall device, checking “Delete the driver software for this device” if available.
- Inspect and Clean the PnP Registry Branch:
- Open
regeditand navigate toHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum. - Look for keys with unusually short, blank, or corrupted subkey names (e.g., missing
DeviceDescorDrivervalues) underUSB,PCI, orSWbranches. - Export the key first (right-click > Export) as a backup, then delete only the clearly corrupted/empty entries. Do not delete active hardware keys.
- Repair System Files with SFC and DISM:
- Open Command Prompt (Admin) and run:
sfc /scannow
- Follow with:
DISM /Online /Cleanup-Image /RestoreHealth
- Restart the PC after both complete successfully.
- Re-scan and Rebuild PnP Device Tree:
- In an elevated Command Prompt, run:
pnputil /scan-devices
- This forces Windows to re-enumerate all Plug and Play devices and rebuild valid registry paths.
Alternative or Verification Steps
- After rebooting, open Event Viewer (
eventvwr.msc) under Windows Logs > System and confirm Error 620 no longer appears when the triggering application or device action runs. - Run
pnputil /enum-devices /problemin Command Prompt — if no devices show a PnP error status, the fix was successful. If the error persists, consider a Windows Update repair install (in-place upgrade) to fully rebuild the PnP database without affecting personal files.