Type in cmd in the Start menu
Right-click the cmd.exe element that shows up
Select Run as Administrator
Answer Yes at the UAC prompt
Copy the following command, and Paste in the command prompt and Press Enter.
The following post will help you fix Error 80070005 when updating Windows Operating System.
First be sure the user account from which you are trying to update is having Administrator Rights. If not, try from an admin account.
As this behaviour occurs if some registry permissions have been restricted, try the following to reset permission.
Reset AU permission
Remember to use an elevated command prompt if UAC is enabled!
Sc sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
You will receive a "Success" message.
Type "Exit" to close the command prompt.
Try Windows Update again.
Now try Update to see if the issue has been resolved.
I suggest rebooting between issuing the commands and trying Windows Update. It might not be needed, but it certainly won't hurt.
Click Start, type: "%windir%\help" and press Enter to open the Help folder.
Click Start, type: "%windir%\system32" and press Enter to open the System32 folder.
Click Start, type the following command and then press ENTER
secedit /configure /cfg %windir%\repair\secsetup.inf /db secsetup.sdb /verbose
Reset the registry permissions to the default settings:
I believe all versions of Windows 7 come with SecEdit.exe already available in C:\Windows\system32\ , so there should be no need to fetch it from anywhere.
You will receive a "Task is completed" message, and a warning message that something could not be done. You can safely ignore this message.
Note: The command is complicated and I suggest you copy and paste the above command into the Run box. After repairing the local security database, let's try windows update again.