0x80070005Access denied
Windows UpdateWindows was refused permission to read or write a file, registry key or service it needed.
Likely causes
- The action was not run with administrator rights.
- Security software is blocking access to a system location.
- File or registry permissions were changed by a cleanup tool.
Try these in order
1. Retry the action from an elevated Command Prompt or Terminal (Run as administrator).
2. Temporarily pause third-party security software, retry, then turn it back on.
3. Run the system file check to repair damaged system components.
sfc /scannow