Start here: sign in with an administrator account, turn off any third-party antivirus for a few minutes, restart, and select Retry in Settings > Windows Update. Error 0x80070005 means “access denied,” and a security program or a non-admin account is the most common reason Windows Update gets blocked. If the retry still fails, the fixes below reset folder permissions and repair the update cache. Steps are for Windows 11, with Windows 10 differences labeled.
What 0x80070005 actually tells you
The code’s official name is E_ACCESSDENIED, a general access denied error. Windows Update hands the actual installing to the servicing stack (the part of Windows that installs updates and features). When the permissions on a file, folder or registry key have been changed and the servicing stack can’t reach it, the install stops with 0x80070005.
Two folders are usually involved. WinSxS is the component store, where Windows keeps the system components an update replaces. SoftwareDistribution is the cache where Windows Update downloads files before installing them. Both live in C:\Windows. The error can show up on a monthly cumulative update (the single package that bundles security and quality fixes), on a feature update such as a new Windows 11 version, or in the Microsoft Store.
| Likely cause | Fix to try |
|---|---|
| Third-party antivirus locking update files | Fix 1: pause or update the security program |
| Signed in without admin rights | Fix 1: switch to an administrator account |
| Wrong permissions on WinSxS or SoftwareDistribution | Fix 3: reset permissions with icacls |
| Corrupted update cache | Fix 4: rename the cache folders |
| Damaged component store or system files | Fix 5: DISM, then SFC |
| A filter driver from security or backup software | Fix 6: check fltmc |
Fix 1: Use an admin account and pause third-party antivirus
- Open Settings > Accounts > Your info and check whether your account is listed as an administrator (in most versions it says Administrator under your name). If it isn’t, ask whoever manages the PC to sign in and install the update.
- Open your third-party antivirus or firewall and update it first, since an outdated security program is a common culprit. Then turn off its real-time protection temporarily. Windows Security can stay on.
- Unplug external drives and docks you don’t need.
- Restart, open Settings > Windows Update, and select Retry or Check for updates.
- Turn your antivirus protection back on as soon as the update finishes.
Leaving protection off is a real risk, so don’t browse or open downloads while it’s paused. If a feature update keeps failing with protection paused, check the security program maker’s support pages for update guidance.
Fix 2: Run the Windows Update troubleshooter
On Windows 11, go to Start > Settings > System > Troubleshoot > Other troubleshooters, then select Run next to Windows Update. On current builds this opens the automated troubleshooter in the Get Help app. Follow the prompts, apply anything it suggests, and restart.
On Windows 10, the path is Settings > Update & Security > Troubleshoot, then choose Windows Update.
Fix 3: Reset permissions on the update folders
This targets the cause Microsoft lists first for this code: the TrustedInstaller account (the built-in account that owns system files) losing access to WinSxS or SoftwareDistribution. These commands change permissions across thousands of system files, so create a restore point first (search Start for “Create a restore point”).
- Right-click Start, choose Terminal (Admin) (or search for Command Prompt, right-click it and choose Run as administrator), and select Yes. If the tab opens in PowerShell, type
cmdand press Enter so the commands below behave as written. - Run these two commands. Each can take several minutes.
icacls "%windir%\WinSxS" /reset /t /c /q
icacls "%windir%\SoftwareDistribution" /reset /t /c /q
- Restart and retry the update.
- If it fails again, make TrustedInstaller the owner of WinSxS from the same elevated window, then restart and retry:
icacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q
Fix 4: Rename the Windows Update cache folders
Renaming forces Windows to build a fresh cache. Nothing is deleted, so you can switch back later. In an elevated Command Prompt, run these lines one at a time:
net stop wuauserv
net stop bits
net stop cryptsvc
ren %windir%\SoftwareDistribution SoftwareDistribution.old
ren %windir%\System32\catroot2 catroot2.old
net start cryptsvc
net start bits
net start wuauserv
Restart and check for updates. The first scan takes longer because the update history list rebuilds. For the longer procedure, including the Windows Installer service, see how to reset every Windows Update component.
Fix 5: Repair Windows with DISM and SFC
DISM repairs the component store, using Windows Update as its repair source by default. SFC then checks protected system files. Run DISM first, in an elevated Command Prompt:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Don’t close the window until SFC reaches 100%. “Windows Resource Protection did not find any integrity violations” means the files are fine. The System File Checker instructions explain the other results. If DISM itself fails with a corruption error, the steps for error 0x80073712 and a damaged component store go further.
Fix 6: Look for security filter drivers
Antivirus, encryption and backup programs load filter drivers that can block file access even when the app looks switched off. In an elevated Command Prompt, type fltmc to list them. Anything that isn’t a Microsoft driver points to software worth uninstalling temporarily before you retry. Microsoft’s troubleshooting page for 0x80070005 also shows how to unload one with fltmc unload, but uninstalling the program is safer for most home users.
Fix 7: Reinstall your current version of Windows 11
This repair keeps your apps, files and settings. Back up important files anyway, and keep the PC on power and online the whole time.
- Go to Start > Settings > System > Recovery.
- Under Fix problems using Windows Update, select Reinstall now.
- Choose whether to restart automatically 15 minutes after the install, then select OK.
- Windows Update downloads a repair copy of your current version. Restart when it finishes, then check for updates again.
The option needs Windows 11 with the 2022 annual update or later plus the February 2024 optional update or a later one, and it may be hidden on work or school PCs. Details are on the reinstall the current version of Windows page.
Situations that need a different route
Windows 10 PCs
Fixes 1 and 3 through 6 work the same on Windows 10, but open the elevated window by searching for cmd, right-clicking Command Prompt and choosing Run as administrator. There’s no Settings reinstall option, so the last resort is an in-place repair upgrade: create installation media for your current version, run setup.exe from it, and choose to keep personal files and apps. Windows 10 support ended on October 14, 2025, so a PC that can run Windows 11 is better off moving to it.
Only one cumulative update fails
Note the KB number in Settings > Windows Update > Update history, search for it in the Microsoft Update Catalog, download the file that matches your version and processor type (x64 or Arm64), then open the downloaded .msu file and follow the prompts.
Work or school PCs
If Settings says some settings are managed by your organization, updates may come from WSUS (an internal update server) and Group Policy can restrict folder access. Changing permissions on a managed PC can break company policy, so send the error code to IT instead.
When a step itself fails
- “Access is denied” when running a command: the window isn’t elevated. Close it and reopen it as administrator.
- A service won’t stop: wait a minute and run the net stop line again, or restart the PC and start Fix 4 straight away.
- The rename fails because the folder is in use: one of the services is still running. Stop it again, then retry the ren line.
- The error keeps coming back: open C:\Windows\Logs\CBS\CBS.log in Notepad and search for
, errornear the time of the failure. The lines above it name the file or registry key that was denied, which tells you what software or setting to look at.
If Windows Update starts showing 0x80070002 instead, the fixes for Windows Update error 0x80070002 apply instead.
Check that the update installed, or roll it back
Go to Settings > Windows Update > Update history. A successful install is listed there with its date. Press Windows key + R, type winver, and press Enter to see your version and build.
If a new update causes problems, open Update history, select Uninstall updates under Related settings, pick it and select Uninstall. Some updates can’t be removed. You can also return to the restore point you made before Fix 3. Once everything works, the SoftwareDistribution.old and catroot2.old folders can stay or be removed. To undo Fix 4 instead, stop the three services, rename the new folders out of the way, and rename the .old folders back.
Things people ask about 0x80070005
Is 0x80070005 a sign of a virus?
Not usually. It’s a permissions error, and security software causes it more often than malware does. A full scan in Windows Security is still a sensible check if other things on the PC behave oddly.
Why does the same code appear in the Microsoft Store?
The code means access denied anywhere in Windows, not only in Windows Update. For Store downloads, press Windows key + R, type wsreset, and press Enter. If the Store still fails, test it in a second user account; if it works there, the problem is likely tied to your profile.
Should I give “Everyone” full control of a folder?
No. Granting Everyone full control weakens security and doesn’t fix the servicing stack’s access. Resetting permissions to their defaults with icacls, as in Fix 3, is the safer approach.
Can I just wait for next month’s update?
Cumulative updates include earlier fixes, so a later one may install, but an access problem usually blocks it too. Fixing permissions now keeps security fixes from piling up.
Work through the fixes in order and retry after each one. Most PCs are back to normal by Fix 4, and the Recovery reinstall covers nearly everything that remains.