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
| Item | What Microsoft says |
|---|---|
| Meaning | Access denied or insufficient permissions |
| Technical name | E_ACCESSDENIED, shown in logs as HRESULT = 0x80070005 |
| First checks | Confirm administrator access and temporarily turn off antivirus and firewall |
| Permission repair | Reset permissions on WinSxS and SoftwareDistribution with icacls |
| Last steps | DISM, 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
| Cause | What it affects |
|---|---|
| TrustedInstaller account lacks permissions | The %windir%\WinSxS or %windir%\SoftwareDistribution folders |
| Wrong permissions on a registry key | HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing |
| Third-party antivirus or security tool | Locks update-related files or folders |
| SYSTEM account lacks Full Control | The %windir% folder, usually C:\Windows |
| Group Policy or a management agent | Restricts 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 wuauservnet stop bitsnet stop cryptSvcren %windir%\SoftwareDistribution SoftwareDistribution.oldren %windir%\System32\catroot2 catroot2.oldnet start cryptSvcnet start bitsnet 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
- Temporarily turn off real-time antivirus protection.
- In an administrator Command Prompt, run
fltmcto list file system filter drivers. - For each non-Microsoft driver, run
fltmc unload <DriverName>. - 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.
- Press Win + R, type
services.msc, and press Enter. - Stop the Windows Update service.
- Delete everything inside
C:\Windows\SoftwareDistribution. - 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.
Similar permission and file errors
| Code | Microsoft guidance |
|---|---|
| 0x80070005 | Access denied or insufficient permissions: confirm admin access, disable antivirus and firewall temporarily |
| 0x80070057 or 0x80080005 | Corrupted files or permission problems: run sfc /scannow as administrator and run the troubleshooter |
| 0x80070002 | Update failed to install: restart, run the troubleshooter, check disk space |
| 0xC0000005 | Access 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.