Code 31 Windows cannot load the required drivers
Windows was unable to load a driver required for your device.
First, check that this guide matches your problem
When it happens
My network or graphics device does not work after installation.
Common causes
- Driver corruption
- Incompatible version
- Filter driver conflict
Step-by-step fixes
3 steps, 40 min–1 hr 20 min in total. The easiest checks come first, so stop as soon as the problem is fixed.
When driver files or settings are damaged, Windows gives up loading it. Removing only the device may reuse the same package, so remove the package as well.
- Download the driver you'll install from the PC or device maker's site first. For a network device, download it on another PC or phone and move it over via USB.
- In Device Manager, choose the device > Uninstall device, tick 'Attempt to remove the driver for this device', and uninstall.
- Restart and install the driver you downloaded.
What to check
If the device status turns normal and network or display functions work, you're done. If Code 31 returns, check filter software.
Did this step fix it?
Network adapters load VPN or firewall filter drivers alongside them, and storage devices load backup or encryption filters. If such a filter breaks, the main driver may fail to load too.
- In Settings > Apps > Installed apps, find VPN, firewall, backup or encryption programs installed or updated on the day the problem began.
- Remove it using the vendor's removal procedure, restart, and check the device status. Don't delete filter entries in the registry yourself.
What to check
If it's normal after removal, confirm a compatible version with the vendor before reinstalling. If nothing changes, check system files.
Did this step fix it?
If several devices show Code 31 at once rather than just one, Windows' driver-related components may be damaged.
- Run
DISM /Online /Cleanup-Image /RestoreHealthin an admin terminal, thensfc /scannow. - Restart and look at the status in Device Manager again.
DISM /Online /Cleanup-Image /RestoreHealthsfc /scannowWhat to check
If it's normal, you're done. If it continues, consider System Restore to a restore point from before the problem began.
Did this step fix it?
Frequently asked questions
Related PC FIX problems
Official references
Content reviewed: 2026-10-07