|

How To Fix Windows Update Error 0x80070005 In Windows 11 (2026)

Windows Update error 0x80070005 means access was denied while Windows tried to install an update.

Microsoft’s support page lists it as an access denied or insufficient permissions error, and a Microsoft Learn article walks through the technical fixes.

This guide starts with the simple checks and moves to the permission repairs, which need an administrator Command Prompt.

Quick answer for error 0x80070005

ItemWhat Microsoft says
MeaningAccess denied or insufficient permissions
Technical nameE_ACCESSDENIED, shown in logs as HRESULT = 0x80070005
First checksConfirm administrator access and temporarily turn off antivirus and firewall
Permission repairReset permissions on WinSxS and SoftwareDistribution with icacls
Last stepsDISM, SFC, then check for third-party filter drivers

What error 0x80070005 means

Microsoft’s troubleshooting page for Windows Update describes 0x80070005 as access denied or insufficient permissions.

A separate Microsoft Learn article says the update fails and the system reports 0x80070005 (E_ACCESSDENIED).

The same article lists five causes, so the fix depends on what is blocking the update.

Causes Microsoft lists

CauseWhat it affects
TrustedInstaller account lacks permissionsThe %windir%\WinSxS or %windir%\SoftwareDistribution folders
Wrong permissions on a registry keyHKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing
Third-party antivirus or security toolLocks update-related files or folders
SYSTEM account lacks Full ControlThe %windir% folder, usually C:\Windows
Group Policy or a management agentRestricts write access to system directories

Step 1: confirm you are an administrator

Microsoft’s first checks say some updates need administrator access.

If your account is not an administrator, create an administrator account or ask someone who has one to install the updates.

Then make sure the PC is plugged in, connected to the internet, and has no unneeded external devices attached.

Step 2: pause antivirus and firewall

For 0x80070005, Microsoft’s suggested fixes include confirming administrator access and temporarily disabling antivirus and firewall software.

Turn the protection back on after the update installs.

If a security product is the cause, Microsoft says it can lock update files, which matches the access denied message.

Step 3: reset folder permissions

Microsoft Learn recommends backing up the operating system disk before you troubleshoot, because these commands change permissions.

Open Command Prompt as administrator and run these two commands:

icacls "%windir%\WinSxS" /reset /t /c /q

icacls "%windir%\SoftwareDistribution" /reset /t /c /q

Restart the PC and retry the update.

Step 4: make TrustedInstaller the owner of WinSxS

If the update still fails, Microsoft’s next step is to set the owner of the WinSxS folder.

Run icacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q in the same administrator Command Prompt.

Restart, then try Windows Update again.

Step 5: reset Windows Update components

Microsoft Learn’s third step renames the update download and catalog folders.

  • 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 retry the update.

Step 6: repair system files

Run DISM /Online /Cleanup-Image /RestoreHealth, which uses Windows Update as its repair source by default.

Next run sfc /scannow, restart, and try the update again.

Our guide to running SFC and DISM explains both commands in more detail.

Step 7: check third-party filter drivers

  1. Temporarily turn off real-time antivirus protection.
  2. In an administrator Command Prompt, run fltmc to list file system filter drivers.
  3. For each non-Microsoft driver, run fltmc unload <DriverName>.
  4. Restart and retry the update.

If it still fails and you have unloaded every non-Microsoft driver, Microsoft says to contact Microsoft Support.

Run the Windows Update troubleshooter

Microsoft’s own list starts with the built-in troubleshooter.

Go to Settings > System > Troubleshoot > Other troubleshooters, select Run next to Windows Update, and follow the prompts.

On Windows 11 you can also open the Get Help app and run it from there.

Clear the cache from Services instead

Microsoft’s support page offers an alternative to the rename commands that you can do from the Services window.

  1. Press Win + R, type services.msc, and press Enter.
  2. Stop the Windows Update service.
  3. Delete everything inside C:\Windows\SoftwareDistribution.
  4. Start the Windows Update service again.

Reinstall Windows 11 without losing files

Go to Start > Settings > System > Recovery and select Reinstall now under Fix problems using Windows Update.

Microsoft says this repairs system files and components while keeping your apps, files and settings.

The option is not shown on PCs where updates are managed by an organization.

Confirm the code in the logs

Microsoft says WindowsUpdate.log or CBS.log shows the error as “Failed to create file” or “Failed to internally open package” with HRESULT = 0x80070005.

To get a readable copy of the Windows Update log, run Get-WindowsUpdateLog in Windows PowerShell and search the output for 0x80070005.

CodeMicrosoft guidance
0x80070005Access denied or insufficient permissions: confirm admin access, disable antivirus and firewall temporarily
0x80070057 or 0x80080005Corrupted files or permission problems: run sfc /scannow as administrator and run the troubleshooter
0x80070002Update failed to install: restart, run the troubleshooter, check disk space
0xC0000005Access denied, often caused by antivirus: disable it during install and check permissions

If nothing works

Microsoft’s article is written for IT professionals and says Windows Client and Windows Server are covered, but not specific builds.

If the PC belongs to your employer, a Group Policy setting or management agent may be restricting access, so ask your IT team.

You can also try uninstalling a Windows update, starting Windows 11 in safe mode, or resetting Windows 11 and keeping your files as a last resort.

Microsoft also lists a clean installation of Windows 11 as the final option, using the download tool on its software download page, so back up your files first.

For other update failures, see our guide to a Windows 11 update that is stuck or failing.

Sources

Leave a Reply

Your email address will not be published. Required fields are marked *