Step 1:
Run the built-in Windows update troubleshooter and check if it works correctly. Following are the steps.
- Press Windows + W keys on your keyboard to open the search option.
- Type Troubleshooting and click Troubleshooting.
- Then click on view all option.
- Click on Windows update and follow the prompts to run the troubleshooter.
Step 2:
Manually reset the Windows Update Components. Please follow the steps in this article.
http://support.microsoft.com/kb/971058
Note: These are the steps to how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, to be more secure, back up the registry before you modify it. Then, you could restore the registry if the problem occurs. How to back up and recover the registry. Please try to run Windows Update and check if the steps above solve the error.
Step 3:
Repair missing or damaged system files, Please follow the link below.
https://support.microsoft.com/kb/929833
Note: The System File Checker is a utility in Windows that allows users to scan for corruption in Windows system files and restore broken files. This article shows how to run the System File Checker tool (SFC.exe) to scan your system files and fix missing or corrupted system files in Windows 8.1 or Windows 8. If a Windows Resource Protection (WRP) file is missing or corrupted, Windows may not run correctly.