Knowledge base / Device Manager codes

Code 40: Windows cannot access this hardware because its service key information in the registry is missing or recorded incorrectly

The driver's registration in Windows is broken.

Usual causes

How to fix it

  1. In Device Manager, right-click the device → Uninstall device (tick "Attempt to remove the driver" only if offered and you have the new driver ready), restart, then install the maker's driver.

Related: How to find a device's hardware ID · Where to get drivers safely · All Device Manager codes

Let BIOS Advisor check this for you

A free, read-only scan finds device problems, slow memory, wrong slots and BIOS settings, and explains each one.

Scan my PC free