How to Fix a Code 31 Error
start your computerif you haven’t done so already.
The Code 31 error could source from a temporary memory glitch.
Did you install a machine or make a change in machine Manager just before the Code 31 error appeared?

Lifewire / Tim Fisher
If so, it’s possible that the change you made caused the Code 31 error.
Roll back the driverto a version prior to your updates.
Use System Restoreto undo recent gear Manager-related changes.
Delete the UpperFilters and LowerFilters registry values.
A common cause of Code 31 errors is the corruption of tworegistry valuesin the DVD/CD-ROM Drive Classregistry key.
The UpperFilters/LowerFilters tutorial linked above will show you exactly what it’s crucial that you do.
Some people have had luck deleting theentire keythat holds the UpperFilters and LowerFilters values.
Update the drivers for the rig.
Open machine Managerand access theAction>Add legacy hardwarescreen.
Start the wizard and selectInstall the hardware that I manually select from a list (Advanced).
Click through the steps and chooseNetwork adapters>Microsoft>Microsoft ISATAP Adapterfrom the list.
As a last resort, you might need to replace the hardware that has the Code 31 error.
It’s also possible that the rig is not compatible with this version of Windows.
Check theWindows Hardware Compatibility Listto be sure.
If that doesn’t work, try aclean install of Windows.
Need More Help?
Causes of a Code 31 Error
The Code 31 error is one of severalDevice Manager error codes.
Regardless of the root cause, troubleshooting an error Code 31 is pretty straightforward.
According to Microsoft, there is no actual error.
gear Manager error codes are exclusive to gear Manager.
If you recently installed a gadget or made a change to gadget Manager, undo the change.
You may need to remove or reconfigure the new rig or update its drivers.
Try running the Automatic Startup Repair tool.
Or, go to the command prompt and enterbootrec /rebuildbcdto rebuild the BCD file.
Ensure your RAM, PCI card, CPU, and hard drive are all correctly installed.
it’s possible for you to also try recovering an earlier system state or reinstalling your operating system.