Upgrading your Windows 10 computer does not always go smoothly and you often encounter not just one but various errors so, in this post, we are going to cover several Windows 10 upgrade errors such as 80240020, 8007002C, 80246007, 80070004. All these upgrade errors are related to the Windows Update folder. Thus, you need to clear the Software Distribution folder, repair the System Image and fix System Health in order to resolve all these Windows 10 Upgrade errors.
Before you get started on the steps to resolve these tons of errors, you have to disable your security program for the meantime, disconnect your peripherals, remove USBs connected to your PC and then make sure that your PC is connected to the main power supply. Once you have everything covered, carefully follow the options given below.
Option 1 – Delete Windows 10 Update Files in the SoftwareDistribution folder
The Software Distribution folder in the Windows operating system is a folder that can be found in the Windows directory and is used to store files temporarily which might be required to install the Windows Update on your PC. Thus, it is required by the Windows Update and maintained by WUAgent. A lot of users tried deleting the files in this folder to fix the problem and so far it has worked. Like them, you can try clearing the Windows Update cache by simply deleting the contents of the folder named “SoftwareDistribution” since Windows apparently can’t clear and re-download the update contents once they are corrupted. Thus, deleting the contents of this folder will make Windows download the contents again which will fix the problem. To do that, follow the steps below.
- Open the WinX Menu.
- From there, open Command Prompt as admin.
- Then type in the following command – don’t forget to hit Enter right after typing each one of them.
net stop wuauserv
net stop bits
- After entering these commands, it will stop the Windows Update Service and the Background Intelligent Transfer Service.
- Next, go to the C:\Windows\SoftwareDistribution folder and get rid of all the folders and files thereby tapping the Ctrl + A keys to select them all and then click on Delete. Note that if the files are in use, you won’t be able to delete them.
- Once all the contents in the Software Distribution folder are deleted, restart your PC and then go back to Command Prompt and input the following commands again.
net start wuauserv
net start bits
Since the folder has already been flushed, it will be populated afresh the instant your restart your computer and open Windows Update.
- Now Open Settings and check for Windows Updates. Windows 10 should begin the download right away.
Option 2 – Try using the DISM tool
Running the DISM Tool helps in repairing the Windows System Image as well as the Windows Component Store in Windows 10. Using this built-in tool, you have various options such as the “/ScanHealth”, “/CheckHealth”, and “/RestoreHealth”.
- Open the Command Prompt with admin privileges.
- Then type in the following commands and make sure to hit Enter right after you type each one of them:
- Dism /Online /Cleanup-Image /CheckHealth
- Dism /Online /Cleanup-Image /ScanHealth
- exe /Online /Cleanup-image /Restorehealth
- Do not close the window if the process takes a while as it will probably take a few minutes to finish.
Note: If it happens that the Windows Update client is broken, you need to run the following command to repair it then restart your PC and click on Update once again.
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:RepairSourceWindows /LimitAccess
Note: The Windows Upgrade error, with error code 80240020 is an expected error message that happens when the upgrade requires customer user action. Thus, you need to do the following steps to resolve this particular Windows Upgrade error.
- Tap the Win + R keys to open the Run dialog box.
- Then type “regedit” in the field and hit Enter to open the Registry Editor.
- After that, navigate to this registry key: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate
- Now right click on WindowsUpdate located in the left pane and then create a new key and name it as “OSUpgrade”
- Next, right-click in an empty space in the left pane and create a new DWORD and name it “AllowOSUpgrade” and enter “1” as its value.
Option 3 – Try running the Windows Update in a Clean Boot State.
Putting your PC in a Clean Boot state can also help you install Windows Updates or Upgrades without any trouble because, during this state, you can start the system with a minimum number of drivers and startup programs that will surely help you in isolating the root cause of the issue.
- Log onto your PC as an administrator.
- Type in MSConfig in the Start Search to open the System Configuration utility.
- From there, go to the General tab and click “Selective startup”.
- Clear the “Load Startup items” checkbox and make sure that the “Load System Services” and “Use Original boot configuration” options are checked.
- Next, click the Services tab and select the “Hide All Microsoft Services” checkbox.
- Click Disable all.
- Click on Apply/OK and restart your PC. (This will put your PC into a Clean Boot State. And configure Windows to use the usual startup, just simply undo the changes.)
- After that, try to install the Windows Updates or upgrade again.