The Windows Update error code 0x80240031 is considered as the common issue that happens when you are trying to update to the newest Windows 10 Insider preview. Also, it can appear when you are trying to download the updates or when the updates are fully downloaded but fails to install. Another case is when you are trying to update the systems from Windows 7, Windows 8 or Windows 8.1 to Windows 10. It is better for you to fix the data so the error will not harm you.
However, do not be panic if you face this error 0x80240031 because in this page you will b explained about the methods to fix this error. There are some methods to get rid of this error, including troubleshooting the system, resetting the Windows Update, fixing the damaged files, automatic repairing, refreshing the system, and downloading Windows ISO.
The first method is the first method to fix this error. To do this, first, press the Windows key + X. There will be a dialog pop up and you have to select Control Panel. Then, type “troubleshooter” in the search box and then select troubleshooting. The next thing you have to do is to go to Systems and Security and then select “Fix problems with Windows Update”. When the troubleshooter window pops up, please click next, and then the computer will automatically scan and fix any errors. After it is done, you are able to update the system and see if the error is still there.
The second method involves some actions. Please uninstall the third party anti virus software in the system before you start. As addition, the Windows Firewall also needs to be turned off temporarily only during the process. After it is done, you can reset Windows Update Service by opening up the Command Prompt. To open it, you can press the windows key + F and then type Command Prompt. Next, please right click and click “Run as administrator”. After that, you can write every like of code while pressing enter after every line of code is complete. The codes are “net stop wuauserv”, “net stop cryptSvc”, “net stop bits”, “ren C:\Windows\SoftwareDistribution Softwaredistribution.old”, “ ren C:\Windows\System32\catroot2 catroot2.old”, “net start wuauserv”, “net start cryptSvc”, “net start bits”, “exit”. When all of them completed, you can restart the computer to fix the error. After it is done, please try to update the windows.
In the method 3, you are going to repair any damaged files in the system that might be behind this error. First, open Command Prompt. The steps to do it as same as in the method 2. Make sure that the Command Prompt is in administrator mode. Then, type “sfc/scannow” and hit enter. If there is any issue, it will be fixed automatically. If there is no warning while completing the process, then the next thing you have to do is to restart the computer and then try to update it.