Fix: Windows Update Error 0x80070005: A Complete Troubleshooting Guide

Encountering Error 0x80070005 while trying to update Windows 11 can be incredibly frustrating. Known as the 'Access Denied' error, it typically occurs when the system lacks the necessary file permissions to complete an update or when a third-party antivirus blocks the process. This guide provides a step-by-step approach to resolving this common Windows error.

Step 1: Run the Windows Update Troubleshooter

Windows 11 includes built-in diagnostic tools that can automatically detect and fix issues with the update service. This should always be your first step.

  • Open Settings by pressing Windows Key + I.
  • Navigate to System > Troubleshoot > Other troubleshooters.
  • Locate Windows Update and click the Run button.
  • Follow the on-screen instructions and restart your computer if prompted.

Step 2: Reset Windows Update Components

Corrupted update folders can often trigger the 0x80070005 error. Manually clearing the update cache forces Windows to download fresh files.

  • Type cmd in the Windows search bar, right-click Command Prompt, and select Run as Administrator.
  • Type the following commands one by one, pressing Enter after each:
  • net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver

  • Next, rename the update folders by typing:
  • ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old

  • Finally, restart the services:
  • net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver

Step 3: Use the SubInACL Tool to Fix Permissions

Since 0x80070005 is an 'Access Denied' error, it often stems from incorrect registry or file permissions. Using a script to reset these permissions is a highly effective fix.

  • Download the SubInACL tool from the official Microsoft website (or use the built-in icacls command).
  • Open Notepad and paste the following code:
  • @echo off
    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f
    subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=system=f
    subinacl /subdirectories %SystemDrive% /grant=administrators=f
    subinacl /subdirectories %SystemDrive% /grant=system=f
    pause

  • Save the file as fix.bat and run it as Administrator.

Step 4: Perform a System File Checker (SFC) and DISM Scan

Corrupted system files are a frequent cause of update failures. These two commands repair the underlying Windows image.

  • Open Command Prompt as Administrator.
  • Type sfc /scannow and press Enter. Wait for the process to reach 100%.
  • Then, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
  • Restart your PC once both scans are complete.

Step 5: Disable Third-Party Antivirus Temporarily

Aggressive security software can sometimes prevent Windows from writing to critical system folders during an update. Disable your third-party antivirus or firewall temporarily and attempt the update again. Remember to re-enable it immediately after the update finishes to keep your system secure.


💡 Pro Tip: Keep your software updated to avoid these issues in the future.


Category: #OS