Device Manager Code 31 — Windows Cannot Load the Drivers
| Code | Code 31 |
|---|---|
| Applies to | Windows device (any brand) |
| Severity | Try fixes, then service |
| Most common cause | The driver is missing, corrupted, or the wrong version for this Windows build |
What this code means
Code 31: 'This device is not working properly because Windows cannot load the drivers required for this device.' Unlike Code 28 (no driver exists), here a driver is present or expected — Windows just cannot get it loaded. The driver may be corrupt, mismatched to this Windows build, missing a companion file, or blocked because a device it depends on has failed.
Microsoft groups Code 31 with the update-the-driver codes, and that is the right first move — but check the device's parent in the tree too, because Code 31 is also how a child device reports that its controller died.
Likely causes
- The driver is missing, corrupted, or the wrong version for this Windows build
- A device this one depends on (its controller or parent) has failed, so its drivers cannot load
- The driver files exist but a required companion file or service was removed
- Windows Update installed an incompatible driver over a working one
How to fix it — step by step
- Update the driver
Right-click the device → Update driver. If Windows has a better package available locally or via Windows Update, this alone can clear Code 31.
- Reinstall from the manufacturer
Uninstall the device (tick 'Attempt to remove the driver'), restart, then install the manufacturer's full current package for your exact model from their official page.
- Check the parent device
Expand the tree above your device in Device Manager. If the controller (for example a USB host controller or a storage controller) also shows an error, fix that device first — everything under it inherits its failure.
- Roll back a bad update
If Code 31 began right after a driver update, open the device's Driver tab and use Roll Back Driver to return to the version that worked.
If the code comes back after these steps, treat it as a hardware or service fault rather than a settings problem — that is the honest end of software troubleshooting for this code.
Is it a driver problem?
Yes. Yes, in most cases. Code 31 means the driver load itself is failing — a fresh install of the manufacturer's current driver is the primary fix. The exception is when a parent device has failed; then that device is the real patient.
Get the official driver or support for your device
If a fix above points you at a driver, get it from the manufacturer only:
Microsoft Support — Update drivers manually in Windows Opens support.microsoft.com
Printer, laptop or PC drivers by brand: HP · Dell · Lenovo · Acer · ASUS · Canon · Epson · Brother · Samsung printers
Related errors
- Code 28 — The drivers for this device are not installed — Windows found the hardware but has no driver for it anywhere on the system.
- Code 37 — Windows cannot initialise the device driver for this hardware — the driver loaded but its start-up routine failed.
- Code 26 — Device was not loaded — a driver failed while Windows was loading it, or a device it depends on failed first.
Verified 2026-11-28 against: support.microsoft.com · www.windowscentral.com. Meanings follow the manufacturers' and Microsoft's published documentation; where a code's meaning depends on the exact model, the page says so.