How to Fix Error 0x80070005 on Windows 10
Error 0x80070005 means “access denied,” and it shows up in the most annoying places: Windows Update refusing to install, the Microsoft Store failing downloads, apps that won’t install, and System Restore erroring out. The code is the same everywhere, but the right fix depends on where you’re seeing it.
This guide covers the most common scenarios in order: update failures first, then Store and app installs, then the deeper permission repairs. Before starting, note exactly where you see the error — the dialog title or the app that’s failing — because that determines which fix applies to you, and the wrong fix wastes your time.
If your error code is different, our error 0x80070057 fix covers the parameter-is-incorrect sibling of this error.
Why this happens
- Broken permissions on system folders: The Windows Update or Store cache folders have wrong ownership or ACLs.
- Disabled or misconfigured services: Update and installer services running under the wrong account or not running at all.
- Antivirus blocking writes: Security software denying legitimate system processes access to their own files.
- Corrupted user account permissions: The profile’s security descriptors damaged by disk errors or bad migrations.
- Full or failing drive: Writes fail when there’s no space, and Windows sometimes reports it as access denied.
- Malware: Malicious software stripping permissions to protect itself or breaking the security subsystem.
How to fix it
Work through these in order, starting with the scenario that matches yours.
Fix 1: Reset Windows Update components (update failures)
When 0x80070005 blocks Windows Update, the cache permissions are usually the problem.
- Open an admin Command Prompt.
- Stop the services:
net stop wuauservnet stop cryptSvcnet stop bitsnet stop msiserver - Rename the cache folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 catroot2.old - Restart the services with matching
net startcommands. - Check for updates. Fresh folders get correct permissions automatically.
- If the error persists, also verify the Windows Update and BITS services are running under their proper accounts in
services.msc— a service running as the wrong user produces access-denied errors that cache resets can’t fix.
Fix 2: Run the Windows Update troubleshooter
The automated tool fixes service accounts and permissions Windows Update depends on.
- Go to Settings > Update & Security > Troubleshoot > Additional troubleshooters.
- Run the Windows Update troubleshooter and apply its fixes.
- Restart and retry the update.
- If it reports it couldn’t fix everything, continue — the manual fixes below go further. For Store-specific failures, our unexpected store exception guide covers that side.
Fix 3: Take ownership of the problem folders (Store and app installs)
When the Store or installers hit access denied, the app repository permissions are usually damaged.
- Press Win + R, type
wsreset.exe, and press Enter — this clears the Store cache without touching your apps. - If installs still fail, open an admin Command Prompt and reset the Store package permissions:
icacls "C:\Program Files\WindowsApps" /reset /t /c /qThis can take several minutes; let it finish. - Never take personal ownership of
WindowsAppsor delete from it manually — the icacls reset restores Microsoft’s intended permissions, which is what you want. - Re-register the Store: in admin PowerShell, run
Get-AppXPackage *WindowsStore* -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} - Retry the failing install.
Fix 4: Check your account and UAC
A damaged admin token or disabled UAC breaks installers in subtle ways.
- Go to Settings > Accounts > Your info and confirm your account shows Administrator.
- If you’re on a standard account, switch to an admin account for installs — or have an admin approve the UAC prompt.
- Check UAC: search Change User Account Control settings and set it to the default level (second from top). Fully disabling UAC breaks Store apps and some installers.
- Try right-clicking the failing installer and choosing Run as administrator as a test — if it works, permissions on your normal token are the issue.
Fix 5: Temporarily disable third-party antivirus
Security products denying system writes is a real and common trigger.
- Disable real-time protection in your antivirus temporarily.
- Retry the update or install immediately.
- Re-enable protection right away.
- If this fixed it, update the antivirus to its latest version — vendors fix these false blocks regularly — and consider adding Windows Update and the Store to its exclusions if it documents how.
Fix 6: Run a full malware scan
Since malware causes permission damage, rule it out before deeper repairs.
- Open Windows Security > Virus & threat protection and run a Full scan.
- Follow with a Microsoft Defender Offline scan under Scan options.
- Remove all threats, restart, and retry the failing operation.
- If malware damaged system permissions broadly, continue to Fix 7 — cleaning the malware doesn’t automatically repair what it broke.
Fix 7: Repair system files and reset permissions
For widespread permission damage, repair the OS itself.
- Open an admin Command Prompt.
- Run
sfc /scannow, thenDISM /Online /Cleanup-Image /RestoreHealth. - Check disk space — ensure at least 10–15 GB free on C:, since full drives produce misleading access-denied errors.
- Run
chkdsk C: /fto fix file-system corruption that may underlie the permission errors. - As a final measure, create a fresh administrator account and test there — if the new account works, your old profile’s permissions are damaged beyond practical repair and migrating is the answer. Microsoft documents account and permission troubleshooting on the Windows support hub .
Closing
Error 0x80070005 is Windows saying “I’m not allowed to do that” — so the fix is always about restoring the right permissions to the right places: the update cache, the Store repository, the service accounts, or your user profile. Work from the specific scenario outward, and resist the urge to just disable security features to make the error go away. Proper permissions fixed once stay fixed, and your updates, Store, and installers will work normally again.
