What the error means
0x80070005 is E_ACCESSDENIED, the general Windows "access denied" error. Microsoft's dedicated troubleshooting article says Windows Update reports it when the update process can't access required files, folders, or registry entries, and that it typically indicates a permissions problem affecting the Windows component store, the SoftwareDistribution folder or related system resources. The consumer Windows Update page puts it more simply: access denied, or insufficient permissions to install updates.
The CBS log usually confirms it with lines such as Failed to create file. [HRESULT = 0x80070005 - E_ACCESSDENIED]. During a feature upgrade the same code can appear with an extended code, such as 0x80070005 - 0x4000D, which Microsoft describes separately as access being denied while Setup migrated data.
Common causes
Microsoft's article lists these conditions:
- The TrustedInstaller service account doesn't have permissions on
%windir%\WinSxSor%windir%\SoftwareDistribution. - The permissions on
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicingaren't correct. - A third-party antivirus or security tool locked update-related files or folders.
- The SYSTEM account doesn't have Full Control on the
%windir%folder. - A Group Policy setting or management agent restricted write access to system directories.
The consumer page adds the simplest cause: the signed-in account is not an administrator.
How to fix it
Microsoft says to back up the operating system disk before you troubleshoot. Restart and retry the update after each step.
1. Install as an administrator
Microsoft notes that some updates require administrator access. If your account is a standard user, sign in with an administrator account, or ask the person who has one to install the updates. Then run Windows Update again.
2. Read the log for the denied file
To see where access was denied, open Windows PowerShell and generate the Windows Update log, then search it for 0x80070005. Also check %windir%\Logs\CBS\CBS.log for E_ACCESSDENIED lines.
Get-WindowsUpdateLog3. Reset permissions on the component store
From an administrative Command Prompt, reset the default permissions, restart, and try the update again:
icacls "%windir%\WinSxS" /reset /t /c /q
icacls "%windir%\SoftwareDistribution" /reset /t /c /qIf it still fails, make TrustedInstaller the owner of WinSxS:
icacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q4. Reset the Windows Update components
Stop the update services, rename the cache folders and start the services again, then restart:
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 wuauserv5. Repair the component store and system files
Run DISM, restart and retry. If the update still fails, run System File Checker:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow6. Rule out security software and filter drivers
Temporarily disable real-time antivirus protection. Then list file system filter drivers with fltmc. If a non-Microsoft driver appears, unload it temporarily with fltmc unload <DriverName> and try the update again. Turn protection back on afterwards.
If nothing works
Microsoft's article recommends contacting Microsoft Support once these steps fail on a physical PC. On an Azure VM it adds the Windows Update Reset Tool under Operations, Run command in the portal, and then a repair VM that runs the same permission and DISM fixes offline. For a broader walkthrough of failed Windows 11 updates, see Windows 11 update stuck or failing.
What we checked
Three Microsoft pages were read on 2026-11-21. The Microsoft Learn article dedicated to Windows Update error 0x80070005 gives the E_ACCESSDENIED meaning, the five permission-related causes, the log entries and the ordered resolution steps used here. The support.microsoft.com Windows Update troubleshooting page lists the code as access denied or insufficient permissions and adds the administrator and antivirus checks. The Microsoft Learn common Windows Update errors page lists it as a general access denied error caused by changed file system or registry permissions. The Windows 10 upgrade resolution procedures page on Microsoft Learn was also read for the 0x80070005 - 0x4000D upgrade variant. The error was not reproduced for this page.
Last checked: 2026-11-21.