Windows Update

Windows Update error 0x80070005: access denied and how to fix it

Windows Update error 0x80070005 (E_ACCESSDENIED) means the update could not reach files, folders or registry keys it needs. Microsoft's fixes, in a safe order.

By EpiFive Editorial TeamSources checked How we check our guides

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%\WinSxS or %windir%\SoftwareDistribution.
  • The permissions on HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing aren'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-WindowsUpdateLog

3. 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 /q

If it still fails, make TrustedInstaller the owner of WinSxS:

icacls "%windir%\WinSxS" /setowner "NT SERVICE\TrustedInstaller" /t /c /q

4. 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 wuauserv

5. 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 /scannow

6. 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.

Official sources

Questions people ask

What does Windows Update error 0x80070005 mean?

It is E_ACCESSDENIED. Microsoft says the update process could not access files, folders or registry entries it needs, which usually points to changed permissions on the component store or the SoftwareDistribution folder.

Do I need to be an administrator to fix 0x80070005?

Yes. Microsoft notes that some updates require administrator access, and every repair command on its troubleshooting page runs from an administrative Command Prompt.

Can antivirus software cause 0x80070005?

Yes. Microsoft lists a third-party antivirus or security tool that locked update files as one cause, and its steps include temporarily disabling real-time protection and unloading non-Microsoft filter drivers.

Guides that mention 0x80070005

  • 0x80070422 (Windows Update)

    Error 0x80070422 means the Windows Update service is disabled or stopped. Set the service to Automatic, start it, restart the PC and check for updates again.

  • 0x80070002 (Windows Update)

    Windows Update error 0x80070002 means a file the update needs could not be found. Restart, run the troubleshooter, free space, then repair the update files.

  • 0x8007000d (Windows Update)

    Error 0x8007000d means Windows Update downloaded invalid or corrupted data. Run the troubleshooter, clear the update cache, download again, repair with DISM.

  • 0x800f081f (Windows Update)

    Error 0x800f081f means Windows could not find the source files it needed during an update, a DISM repair or a .NET Framework 3.5 install. The documented fixes.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.