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.
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.
net stop wuauserv
net stop bits
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.
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”.
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.
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.

GPU shortage and its cause“Bad Image – DLL file is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation media or contact your system administrator or the software vendor for support.”According to security experts, the DLL files that are known to trigger this kind of error message are msvcr100.dll, msvcr110.dll, msvcp140.dll, lmirfsclientnp.dll, and so on. To fix this problem, you can try to update or reinstall the program that’s throwing the error to its latest version. You could also ask the vendor for the latest version of the DLL as well as run a System File Checker scan.
Error Causesxperf -on latency -stackwalk profile -buffersize 1024 -MaxFile 256 -FileMode Circular && timeout -1 && xperf -d cpuusage.etl
Fear not because we had this issue and tried several things in order to overcome the problem and after some time here is a list of what can you do if you are facing this exact issue. The list is written from most simple solutions to more complex ones and it is advisable to follow it as presented. That being said, let's dive into solving the problem.
bootrec /rebuildbcd
takeown /f FileNameAndPathNote: In the given command, “FileNameAndPath” represents the name and the path of the corrupted file. For instance, the corrupted file is named “wuapi.dll”, then you need to type “takeown /f C:/Windows/System32/wuapi.dll” Step 5: Next, you need to grant administrators full access & control to the corrupted file and you can do that via Command Prompt again. Step 6: In the elevated Command Prompt, type and enter the following command to execute it:
icacls FileNameAndPath /GRANT ADMINISTRATORS:FNote: We’re going to use the wuapi.dll again as an example. So the command should be like this: icacls “C:/Windows/System32/wuapi.dll /grant administrators: F”. Step 7: Now all that’s left to do is replace the corrupted system file with a good copy from a trusted source. Once you have a copy, open an elevated Command Prompt again and execute the following command:
copy NewFileLocation FileNameAndPathNote: In the command given above, the “NewFileLocation” is the location where you have saved the copy of the file. For instance, if you’ve saved it on your desktop, this is how it should look: “copy C:/Users/<username>/Desktop/wuapi.dll C:/windows/system32/wuapi.dll”