How to Fix Error 0x80070005 (Access Denied) in Windows 11
The Problem
0x80070005 is Windows' generic ACCESS_DENIED result, dressed up as an error code. Something — the update service, the Store, the activation client, an installer — asked the operating system for access and was refused.
The confusing part is that the refusal usually has nothing to do with your account being an administrator. It is normally one of four things: a service running under a system account that has lost permission to a folder or registry key, security software blocking the operation, damaged Windows Update working folders, or a corrupted local profile.
Getting "You need permission to perform this action" on your own files instead? That is the file-ownership version of the same refusal — see fix access denied and "you need permission".
Symptoms
- Windows Update fails with
0x80070005and retries endlessly. - Microsoft Store downloads stop with the same code.
- Windows activation fails with
0x80070005. - An installer or
.msiquits partway with "access is denied". - A scheduled task or script fails with the code even though it runs fine manually.
Step 1: Confirm You Are Actually an Administrator
- Open Settings → Accounts → Your info and look for Administrator under your name.
- If it says Standard user, either sign in with an admin account or have one change your type in Settings → Accounts → Other users.
- Retry the failing action from an elevated window: right-click Start → Terminal (Admin), or right-click an installer → Run as administrator.
- On a work or school PC, policy may be blocking this deliberately — check with your IT team before changing anything.
Step 2: Turn Off Third-Party Security Software Temporarily
Security suites intercept file and registry writes, and a blocked write comes back as access denied.
- Fully exit the suite from the system tray, or disable its real-time and "ransomware protection" modules.
- Retry the failing action.
- If it now succeeds, add an exclusion for the relevant folder, or uninstall the suite and run the vendor's official removal tool — disabling alone often leaves filter drivers active.
- Microsoft Defender takes over automatically: fix Windows Defender not working.
- Also check controlled folder access: Windows Security → Virus & threat protection → Manage ransomware protection → turn Controlled folder access off while testing.
Step 3: Reset the Windows Update Components
For update and Store failures, the working folders are usually the problem. Renaming them forces Windows to build clean ones.
- Right-click Start → Terminal (Admin).
- Stop the services:
net stop wuauserv net stop cryptSvc net stop bits net stop msiserver - Rename the two cache folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 catroot2.old - Start everything again:
net start wuauserv net start cryptSvc net start bits net start msiserver - Reboot and retry the update. More on update failures: fix Windows 11 update errors and fix Windows Update stuck.
Step 4: Reset the Microsoft Store Cache
- Press Windows + R, type
wsreset.exe, and press Enter. A blank window opens for about 30 seconds and then the Store launches — that is the whole procedure. - If the Store itself is broken, go to Settings → Apps → Installed apps → Microsoft Store → Advanced options → Repair, then Reset.
- Full walkthrough: fix Microsoft Store not working.
Step 5: Repair the System Files and Component Store
- In Terminal (Admin):
sfc /scannow - Then:
DISM /Online /Cleanup-Image /RestoreHealth - Reboot and run
sfc /scannowagain. - Detail: how to run SFC and DISM.
- If DISM itself fails with
0x800f081f, it cannot find replacement files — see fix DISM error 0x800f081f.
Step 6: Restore Permissions on the System Drive
Only do this if the earlier steps have not worked. It rewrites inherited permissions across the drive and takes a long time on a large disk.
- In Terminal (Admin), reset registry and file permissions to their defaults:
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose - Reboot when it finishes.
- This restores the standard permission set that Windows shipped with, which is exactly what a broken third-party installer or an aggressive "optimiser" tends to have damaged.
- Do not skip the reboot — services will not pick up the new permissions until they restart.
Step 7: Test With a New Local Administrator Account
A damaged profile produces access-denied errors that follow you between apps but disappear for any other user.
- Settings → Accounts → Other users → Add account.
- Choose I don't have this person's sign-in information → Add a user without a Microsoft account.
- Create the account, then set it to Administrator under Change account type.
- Sign in as that user and retry the failing action.
- If it works there, the original profile is damaged — move your files across rather than trying to repair it. See fix "signed in with a temporary profile" and fix User Profile Service failed the sign-in.
Step 8: Deal With Activation Specifically
If the code appears only during activation:
- Open Terminal (Admin) and run:
slmgr /ato - If that fails, re-enter the key:
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX - Check the date, time, and time zone are correct in Settings → Time & language — a wrong clock breaks the secure connection to Microsoft's activation servers and returns access denied.
- Confirm the PC can reach the internet without a proxy or VPN interfering, then retry.
- Full guide: activate Windows 11 and fix activation errors.
What Not to Do
- Don't grant "Everyone: Full Control" on system folders to make an error go away. It removes protections that stop malware from modifying Windows, and it does not fix the underlying cause.
- Don't disable User Account Control. It does not resolve 0x80070005 and it weakens the machine.
- Don't run registry permission "fixers" from download sites. The
seceditcommand in Step 6 is the supported equivalent. - Don't leave security software uninstalled after testing — either reinstall it or stay on Defender.
Still Not Working?
If a brand new administrator account also hits the error, and SFC, DISM, and the permission reset have all run clean, an in-place repair install replaces every Windows component while keeping your files and apps: reinstall Windows without losing data. Back up first — set up automatic backups.
Related: fix error 0x80004005, fix "can't delete file in use", and fix Windows Firewall blocking apps.
Related guides
How to Fix DISM Error 0x800f081f in Windows 11
0x800f081f means DISM could not find the replacement files it needs. Point it at a Windows 11 ISO with the /Source switch and the repair completes.
How to Fix the "Undoing Changes" Loop in Windows 11
Stuck on "We couldn't complete the updates, undoing changes made to your computer"? Break the loop and install the update properly with these step-by-step fixes.
How to Fix a Missing Dual-Boot Menu in Windows 11
PC boots straight into Windows with no choice of operating system? Restore the boot menu with firmware settings, bcdedit, and a GRUB repair if needed.
Fix "Signed In with a Temporary Profile" in Windows 11
Blank desktop and a warning that you're using a temporary profile? Your files are safe. Here is how to restore the real profile before anything is lost.
Fix "User Profile Service Failed the Sign-In" in Windows 11
Locked out with "The User Profile Service service failed the sign-in"? Repair the profile entry in the registry and get your account and files back.