Error 0x80070005 — “Access is denied” — is Windows’ permissions system refusing a request. It shows up in Windows Update, the Microsoft Store, app installations, System Restore, and even File Explorer, which makes it confusing: the same code, very different problems. The unifying thread is always permissions — something trying to touch something it is not allowed to touch.
This guide covers the 24H2-era variants systematically: the quick permission repairs, the update-specific fixes, and the Store variant. The key discipline: fix the specific permission problem, never carpet-bomb your system folders with ownership changes. For the “file not found” sibling error, see our 0x80070002 guide .
It helps to know how Windows permissions actually work, because the error message gives you no clue. Every file, folder, and registry key has an access control list (ACL) — a list of which accounts may do what — plus an owner. Error 0x80070005 fires when the requesting account is not on that list with the needed permission. The list gets damaged most often by updates that replace files without preserving their ACLs, by disk corruption flipping bits in the security descriptors, or by one program changing permissions that another program depends on. The fixes below are all variations on one theme: find the object with the wrong list, and put the right list back.
Why this happens
- Corrupted ACLs after an update. 24H2 updates occasionally leave files or registry keys with broken permission entries.
- Antivirus locking files. Third-party AV can deny even SYSTEM access to files it is scanning or quarantining.
- Wrong ownership. Files created under a different user account (or a previous Windows installation) may not grant your current account access.
- Store cache permission drift. The Microsoft Store’s cache folder loses its expected permissions, blocking the Store from itself.
- Windows Update service account issues. The update engine runs as SYSTEM; if system folders’ permissions are damaged, updates fail with 0x80070005.
- Ransomware protection blocking legitimate apps. Controlled Folder Access sometimes blocks installers and updaters it does not recognize.
How to fix it
Work through these in order — identify your scenario first, then apply the matching fix.
Fix 1: Run as administrator (the 10-second check)
- If the error appears when installing or running a program, right-click it and choose Run as administrator.
- If that works, the issue is elevation, not corruption — check the program’s compatibility settings or install it for all users. Some older installers need permanent elevation: right-click the executable, choose Properties > Compatibility, and check Run this program as an administrator.
- For Windows Update errors, this does not apply (Update already runs as SYSTEM) — skip to Fix 3.
Fix 2: Fix permissions on the specific file or folder
- Identify the exact path from the error message or log.
- Right-click it, choose Properties > Security > Advanced.
- Click Change next to the owner, enter your username (or Administrators), and check Replace owner on subcontainers and objects.
- Back in Advanced Security, click Add, select your account, grant Full control, and check Replace all child object permission entries.
- Click OK through everything and retry. Only do this for the specific path involved — never for
C:\Windowswholesale.
Fix 3: Reset Windows Update components
For 0x80070005 during Windows Update:
- Open Terminal (Admin) with Win + X.
- Run:
net stop wuauserv,net stop bits,net stop cryptSvcren C:\Windows\SoftwareDistribution SoftwareDistribution.oldren C:\Windows\System32\catroot2 catroot2.oldnet start wuauserv,net start bits,net start cryptSvc
- Retry the update at Settings > Windows Update.
- If it still fails, run
DISM /Online /Cleanup-Image /RestoreHealthfollowed bysfc /scannow— damaged servicing-stack permissions are a known 24H2 issue, documented on Microsoft’s Windows support hub .
Fix 4: Reset the Microsoft Store
For the Store variant of 0x80070005:
- Press Win + R, type
wsreset.exe, and press Enter. - Go to Settings > Apps > Installed apps > Microsoft Store > … > Advanced options and click Repair, then Reset if needed.
- Sign back into the Store and retry. The reset restores the Store’s folder permissions to their expected state.
Fix 5: Check Controlled Folder Access and antivirus
- Open Windows Security > Virus & threat protection > Ransomware protection.
- If Controlled folder access is on and blocking your app or installer, either turn it off or click Allow an app through Controlled folder access and add the blocked program.
- If you run third-party antivirus, temporarily disable it and retry — AV file locks are a classic 0x80070005 source. Re-enable it immediately after the test.
Fix 6: Use SubInACL-style reset via command line (targeted)
For stubborn registry or folder permission corruption, reset to defaults on the specific branch:
- In an admin terminal, for a folder:
icacls "C:\path\to\folder" /reset /t /c /q - This restores inherited permissions — safer than manual ownership surgery.
- Never run
/resetonC:\Windows,C:\Program Files, or the drive root. Target only the problem path. - For registry keys: open
regedit, navigate to the key, right-click Permissions > Advanced, and restore inheritance from the parent.
Fix 7: System Restore or in-place repair
- If the error started after a specific change, use System Restore (System Properties > System Protection > System Restore) to roll back. Your files are unaffected.
- If permissions are damaged system-wide, do an in-place repair: download the 24H2 ISO from Microsoft’s Windows 11 download page , mount it, run setup.exe, and choose Keep personal files and apps. This reinstalls Windows’ default ACLs cleanly.
Closing
0x80070005 is always a permissions story — the trick is finding which permission, on what object, rather than flailing at the whole system. Run elevated first, fix the specific path second, reset the affected subsystem (Update, Store) third, and check your security software throughout. Resist the urge to take ownership of all of Windows; precision beats force with access-denied errors every time. When the access-denied error is coming specifically from Windows Update rather than files or the Store, our Windows Update 0x80070005 guide for 24H2 goes deeper on that branch.
