0x80070005 Access denied
Access to files, folders, or system resources required for the operation is denied.
First, check that this guide matches your problem
When it happens
Displayed during installation, update, or file saving.
Common causes
- Insufficient permissions
- Security policy restrictions
- Folder access blocked
Step-by-step fixes
3 steps, 25 min–50 min in total. The easiest checks come first, so stop as soon as the problem is fixed.
The same access-denied code means different things to check for saving files, installing programs and Windows Update.
- Write down the full message and the target path (for example C:\Program Files, the desktop, or a network folder).
- Save the same file to your Documents folder, or move the same installer elsewhere and run it, to see whether the path is the issue.
What to check
If it works in Documents but a specific folder is blocked, check security blocking and folder permissions in the next step. If it came from Windows Update, go to the third step.
Did this step fix it?
With Microsoft Defender's ransomware protection on, apps that aren't allowed can be blocked from saving to Documents or the desktop. Changed folder permissions produce the same denial.
- In Windows Security > Virus & threat protection > Manage ransomware protection, see whether Controlled folder access is on and whether Protection history shows a block.
- If the blocked app is trustworthy, add just that app under 'Allow an app through Controlled folder access'.
- If nothing was blocked, check under the target folder > Properties > Security whether your account has 'Write' permission. Don't change permissions or ownership on whole system folders.
What to check
If saving works after allowing the app or checking permissions, you're done. If a work PC blocks it by policy, give your administrator the target path and ask.
Did this step fix it?
A standard user account, or tangled permissions on update components, can cause access denied during installation.
- Check in Settings > Accounts > Your info that the account is an 'Administrator'. Use right-click > Run as administrator only for installers from the official source.
- If it comes from Windows Update, run Settings > System > Troubleshoot > Other troubleshooters > Windows Update (on Windows 10, Update & Security > Troubleshoot).
- If it continues, run
DISM /Online /Cleanup-Image /RestoreHealthand thensfc /scannowin an admin terminal.
DISM /Online /Cleanup-Image /RestoreHealthsfc /scannowWhat to check
If the same update or install completes on an admin account, you're done. If it keeps failing, compare with the antivirus briefly disabled and report the result to its vendor.
Did this step fix it?
Frequently asked questions
Related PC FIX problems
Official references
Content reviewed: 2026-10-07