The Windows Update error code 0x80240031 is common when you are trying to update to Windows 10 from your current operating system. The error can occur when you are moving from build version 14342 to 14352. The other possibility for the error to occur is when you are trying to Download the updates or when the updates are fully downloaded but fail to install. The error is commonly seen in Windows 7, 8, 8.1 and 10. 

Before you try to fix this error code, it is important to back up your data and guide through the given solutions.


windows update error code 0x80240031


1.       Press Win+ X.

2.       In the dialog box, select Control Panel

3.       Type, ‘Troubleshooter’ and then start the troubleshooting

4.       Go to ‘Systems and Security’ and select ‘Fix problems with Windows Update’

5.       Once the troubleshooter window opens up, Click Next

6.       Your computer will automatically scan and fix errors

7.       Once the process is complete, update the computer and see if the error is resolved

Solution 2: Reset Windows Update

Before you start this process, turn off the Windows Firewall temporarily

1.       Press Win + F keys and type Command Prompt

2.       Right click and click, ‘Run as Administrator’. You now need to write each line of code and press Enter after every line of code is complete:

a.       net stop wuauserv

b.      net stop cryptSvc

c.       net stop bits

d.      ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

e.       ren C:\Windows\System32\catroot2 catroot2.old

f.        net start wuauserv

g.       net start cryptSvc

h.      net start bits

i.         exit

3.       Reset the computer and check if the error is fixed.



Solution 3: Fix Damaged Files

1.       Open Command Prompt as shown in Solution 2

2.       Type ‘sfc/scannow’ and hit Enter

3.       If the process completes without any errors, restart the computer. The error should be fixed

4.       If there are errors, then type dism /online /cleanup-image /restorehealth’ and press Enter

5.       Check if the error is now resolved.



Solution 4: Automatic Repair

1.       Press Win + Q. Type, ‘advanced startup options’ and press Enter

2.       The computer settings will open. Find Advanced Startup options’

3.       Click on ‘Restart Now’

4.       Once the computer boots to a new window, click on Troubleshoot and then advanced options and select Automatic Repair

5.       The system will be rebooted, and it will start Automatic Repair. Let it complete and then go to update.

6.       The error should be resolved now.


Solution 5: Refresh Your System

1.       Press Win + Q

2.       Type, ‘Advanced Startup Options’ and select the resulting search

3.       Scroll down till you see, ‘Refresh your PC without Affecting your Files’ and then select ‘Get Started’. Follow the given steps.

4.       Restart and check if the error is resolved