0x80070005: access denied
Likely causes
- The command or installer wasn't run as administrator (UAC blocks it).
- File system or registry permissions were changed, so Windows Update's servicing stack can't reach what it needs.
- Security software blocking access to a file.
How to fix it
- Run the tool again as administrator: right-click Command Prompt or the installer and choose Run as administrator. For activation, run
slmgr.vbsfrom an elevated prompt. - For Windows Update, open the latest log in
%windir%\Logs\CBS, search for the error near the failure time, and scroll up to see which file or registry key was denied. - Admins: restore the right permissions on that object. Change only what the log points to, not whole folders.
- Run the update again.
Checked against: learn.microsoft.com, learn.microsoft.com