Fix Code 31 in Device Manager
Code 31 means Windows found a driver for the device but could not load it. Microsoft's fix is to update the driver: right-click the device in Device Manager, choose Update driver, and if Windows finds nothing, install the driver from your PC maker for your exact model. Microsoft's Device Manager error code article lists this as the recommended resolution.
Checked November 3, 2026 against the manufacturer's own pages.
The short version
What to install and where it comes from. Every link goes to the manufacturer or Microsoft, never to a copy.
Official files only, nothing bundled
Step by step
Install pending Windows updates
Open Settings, Windows Update, choose Check for updates and install everything, including driver items under Advanced options, Optional updates. Intel lists this first for its graphics Code 31 case.
Use Update driver
Right-click Start, open Device Manager, right-click the device showing Code 31 and choose Update driver, then Search automatically for drivers. This is Microsoft's recommended resolution.
Get a network driver on another PC if offline
If the failing device is your only network adapter, download its driver on another computer or phone from the PC maker's support page and copy it over on a USB drive.
Clean-install the driver
Uninstall the device with the option to delete the driver ticked, restart, then run the PC maker's installer. If the code stays, Intel suggests repeating the clean install with its own generic driver.
Restart and check Device status
Restart fully, open the device's Properties and confirm Device status reads This device is working properly.
Faster option: update drivers automatically
The steps above fix this one device. If several drivers are old, a driver updater finds and installs them all in one go, and backs up the current ones first.
1. Scan. Download the free version and run a scan.
2. Review. See each old or missing driver with its newer version.
3. Update. Update one driver free, or all at once with Pro.
Update this driver automatically
Finds and updates this driver and every other outdated driver on your PC.
Auslogics Driver Updater · Free scan · Windows 11, 10, 8, 7 · Backup before every change
Why can’t Windows load the driver?
Microsoft Learn names this code CM_PROB_FAILED_ADD. Windows picked a driver and loaded it, but the driver returned an error when asked to add the device. For drivers built on Microsoft’s WDF framework, Learn says the error can come from the driver’s device add callback. You cannot fix that from settings. A different driver version is the answer, which is why both Microsoft and Intel point you at an update or a clean install rather than at registry changes.
Code 31 on a network adapter
A network adapter with Code 31 creates a catch: with the adapter down, Windows Update cannot download the fix. Plan for that before you uninstall anything.
| Adapter type | Where it shows | Driver source |
|---|---|---|
| Wi-Fi card | Network adapters, name includes Wireless or Wi-Fi | PC maker first, then Intel, Realtek, MediaTek or Qualcomm |
| Ethernet port | Network adapters, name includes Ethernet or GbE | PC maker or motherboard maker first, then the chip maker |
| USB network adapter | Network adapters, sometimes Other devices | The adapter maker’s support page |
Intel’s article on its Wi-Fi and Bluetooth cards lists Code 31 among the codes it covers. Its steps are a cold reboot, a clean driver install, checking that wireless is on, then a BIOS update or BIOS defaults from the PC maker. If the problem began recently, Intel also suggests a restore point from before it started.
Code 31 on Intel graphics and DVD drives
Intel has a separate Code 31 article for its graphics, where the device appears under Display adapters with a yellow bang. Its steps are Windows Update, a clean install of the PC maker’s graphics driver, then a clean install of Intel’s generic driver if the code remains. For a CD or DVD drive, Microsoft’s drive article covers Code 31 and starts with the BIOS and chipset drivers. Our Code 39 guide explains the registry method in that article, which Microsoft places last.
Questions
What is the difference between Code 31 and Code 28?
With Code 28 Windows has no driver at all for the device. With Code 31 a driver is chosen, but it fails when Windows tries to load it, so a newer or different package is needed.
My Ethernet and Wi-Fi both show Code 31. What should I do?
Install the network drivers from a USB drive using Update driver, Browse my computer for drivers. Once one adapter works, run Windows Update to fetch the rest.
Can a DVD drive show Code 31?
Yes. Microsoft's CD and DVD drive article lists Code 31 among the codes it covers, and its methods start with BIOS settings and chipset drivers.
Why does Code 31 come back after every restart?
The same failing driver loads each time. Remove it with the delete option ticked so Windows cannot reuse the stored copy, then install a newer package.