The Windows Update error code 0x80240031 is a common issue that arises when trying to update to the latest Windows 10 Insider preview. This can occur when you are moving from build version 14342 to 14352.
It can also occur when you are trying to Download the updates, or when the updates are fully downloaded but they fails to install. The error is also common when users are trying to update their systems from Windows 7, 8 or 8.1 to 10.
You should also backup all your data before you try to fix the error code. Below are some methods for resolving the error code. Try these method one by one and you should see yourself free from Update error 0x80240031.
Table of Contents
Fixing Update error code 0x80240031 in Windows 7/8/8.1 & 10
Method 1: Troubleshoot your system to fix 0x80240031 Error
This is one of the best methods that will resolve the error.
- First, press the Windows key + X. A dialog will pop up, and select control panel.
- Type “troubleshooter” in the search box and select troubleshooting.
- Go to systems and security and select “Fix problems with Windows Update.”
- Once the troubleshooter window opens up, click next, and your computer will automatically scan and fix any errors.
After the process is through, you can try to update your system and see if the error code 0x80240031 is fixed or not.
Method 2: Reset Windows Update
This method involves several actions. Before you begin, you will have to uninstall any third party anti-virus software in your syste. The Windows firewall should also be turned off temporarily during the process.
You can then reset the windows update service by opening up the command prompt. Press the Windows key+ F and type command prompt. Right click and click “Run as administrator”. You can then write each line of code below while pressing enter after every line of code is complete.
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
Once you have completed the process, you can restart your computer. The 0x80240031 error will be resolved, and you can try to update your windows.
Method 3: Fix damaged files
You can also try to repair any damaged files in your system that might be causing the error code 0x80240031. Open the command prompt as described in method 2. The command prompt should still be in administrator mode for this method to work.
Type “sfc/scannow” and hit enter. if there is any issue with system files, then it will be taken care of automatically. If the process completes without any warnings, then you can restart your computer and try to update it.
If any errors emerged, then you can go further and try to fix the system with DISM. Type “dism /online /cleanup-image /restorehealth” then press enter.
The above mentioned 2 commands proves to be helping in fixing lot of common errors. The error 0x80240031 must be fixed once the code has been executed. But, if it doesn’t help, then skip to next method.
Method 4: Automatic Repair to fix Error code 0x80240031
First, go to the search panel or press the Windows key + Q. Type “advanced startup options” and then press enter.
The PC settings will open up. Scroll through the list until you find the Advanced startup option. Click on “Restart now.”
Once your computer is booted to a new window, click on Troubleshoot and then advanced options and finally select automatic repair.
Now, you system will be Rebooted and this time it will start Automatic Repair. Let it complete and then go to update and see if the udpate error 0x80240031 is still there.
Method 5: Refresh your system
To refresh your system, go to the search box by pressing the Windows key + Q.
Type “advanced startup options” and select the resulting search. The PC settings window will open up as part of the general category.
Scroll down until you come across “Refresh your PC without Affecting your Files” and then select “Get started.” Follow the steps that are provided.
Ensure that your files are backed up before you begin the process as it will remove any installed software and files while returning your system to a new state. Many a times just refreshing PC can fix lot of issues and errors in the system. So you might want to try it to fix 0x80240031 error on your system too.
Method 6: Download Windows ISO
If the methods outlined above do not work when you are trying to update to Windows 10, then you will have to download the official Windows 10 image and install it.
The issue can occur when the Windows upgrade file is in the wrong format. If you are a member of MSDN, then get your copy from the subscription site. You can also use Media creation tool to create the Windows 10 ISO manually. You can then install it and see if this helps you to get rid of 0x80240031 error.
The steps outline above will solve error code 0x80240031. It is advisable to try any of the first four options more than once before you choose option five or six. This will prevent loss of data if you are unable to make a backup of your files.