0x80070005 - Access denied
0x80070005 Microsoft name: ERROR_ACCESS_DENIED
What it means
Windows says the program or account does not have permission to do what it tried. It is the Windows error Access Denied, and the same code appears for many different jobs.
The same code is also reported in the Windows Update and activation tables, so the right fix depends on where you saw it.
This number is listed more than once in Microsoft's tables (see the source box). Use the entry that matches where you saw it.
Where you see it
Windows Update, activation, Microsoft Store, app installs and file or folder changes. Which step is failing matters more than the code.
Likely causes
- The program is not running as administrator.
- File, folder or registry permissions changed.
- Security software or a policy blocking the change.
Three safe steps, in order
Try them one at a time and test after each. No registry edits, no repair tools to buy, and no switching off your security. If a step needs a driver, firmware or Windows installation media, get it only from Microsoft or your device maker.
- Restart, sign in with an administrator account, and try again. If it is an app, right-click it and choose Run as administrator.Related Microsoft page: Troubleshoot problems updating Windows
- If it appears in Windows Update, run the Windows Update troubleshooter, then repair files with DISM /Online /Cleanup-Image /RestoreHealth and then sfc /scannow.Related Microsoft page: Troubleshoot Windows Update error 0x80070005
- If it appears when activating Windows, Microsoft's activation article for this code covers that case. Open Command Prompt as administrator as it describes.Related Microsoft page: Error 0x80070005 access denied (activation)
Stop and get help when…
it is a work PC, or you would need to change permissions on system folders. Do not change permissions on Windows folders yourself.
Source and date
- Official Microsoft reference
- System Error Codes (WinError.h)
- More Microsoft help
- Fix Windows Update errors
- Date checked
- 24 November 2026. Microsoft changes its pages; if a step no longer matches, trust the Microsoft page.
Win32 error 5 wrapped as an HRESULT (0x8007xxxx)
Microsoft describes it as: “Access is denied.”
Source: System Error Codes (WinError.h) (Microsoft Learn content, CC BY 4.0)
HRESULT
Microsoft describes it as: “General access denied error”
Source: COM error codes (Microsoft Learn content, CC BY 4.0)
Windows activation error
The wording above is ours. Where a box quotes Microsoft's description, it comes from Microsoft Learn documentation published under CC BY 4.0 and is credited to the page linked.