0x80070005
Access denied. Windows (or the installer) did not have permission to change a file, folder or registry key.
How to fix it
- Sign in with an administrator account and try again.
- Temporarily turn off third-party antivirus, which can lock files during updates.
- For Windows Update, reset its components:
- Open Command Prompt as administrator.
- Stop the update services:
net stop wuauserv, thennet stop cryptSvc, thennet stop bits, thennet stop msiserver - Rename the update caches:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.oldandren C:\Windows\System32\catroot2 catroot2.old - Start the services again:
net start wuauserv,net start cryptSvc,net start bits,net start msiserver - Restart the PC and run Windows Update again.
- Still failing: run the repair commands
DISM /Online /Cleanup-Image /RestoreHealthandsfc /scannow.
Is it serious?
Almost always a permissions or antivirus problem, not a broken PC.