Error 0x80070005 is an Access denied error. For Windows Update, the supported fixes are to repair permissions, reset Windows Update components, and repair the component store.
Try these steps in order:
- Open Command Prompt as administrator.
- Reset permissions on the Windows component store:
icacls "%windir%\WinSxS" /reset /t /c /q
icacls "%windir%\SoftwareDistribution" /reset /t /c /q
- Restart the PC and try the update again.
- If it still fails, in the same elevated Command Prompt, make sure TrustedInstaller owns the
WinSxS folder:
icacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q
- Restart the PC and try the update again.
- If it still fails, reset Windows Update components:
net stop wuauserv
net stop bits
net stop cryptSvc
ren %windir%\SoftwareDistribution SoftwareDistribution.old
ren %windir%\System32\catroot2 catroot2.old
net start cryptSvc
net start bits
net start wuauserv
- Restart the PC and try the update again.
- If it still fails, repair the component store:
DISM /Online /Cleanup-Image /RestoreHealth
- Restart and try Windows Update again.
Additional supported checks for 0x80070005:
- Temporarily disable real-time antivirus protection during installation, because access-denied errors can be caused by security software.
- If the issue continues after the steps above, contact Microsoft Support.
Warning: the reset steps rename Windows Update cache folders and change system folder permissions. Run the commands exactly as shown in an elevated Command Prompt.