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

Windows Update Error 0x80070005, often referred to as the 'Access Denied' error, typically occurs when the operating system lacks the necessary file or registry permissions to complete an update. This can be triggered by aggressive antivirus software, corrupted system files, or misconfigured user account settings. If you are unable to install the latest security patches or feature updates due to this error, follow these proven solutions to fix it.

Step 1: Run the Windows Update Troubleshooter

Microsoft provides a built-in diagnostic tool designed to identify and automatically resolve common update-related issues. This should always be your first step.

  • Open the Start Menu and go to Settings.
  • Navigate to System > Troubleshoot > Other troubleshooters.
  • Find Windows Update and click the Run button.
  • Wait for the process to finish, apply any suggested fixes, and Restart your computer.

Step 2: Reset the Windows Update Cache

Sometimes the update files stored in your system become corrupted. Clearing the cache forces Windows to download a fresh copy of the update.

  • Type cmd in the Windows search bar, right-click Command Prompt, and select Run as Administrator.
  • Stop the update services by typing the following commands one by one, pressing Enter after each:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
  • Rename the cache folders by entering:
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
  • Restart the services:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver

Step 3: Fix Permission Issues via Command Prompt

The 0x80070005 error is fundamentally a permission issue. You can use the icacls command to reset permissions for the folder where updates are stored.

  • Open Command Prompt (Admin) again.
  • Type the following command and press Enter:
    icacls "C:\Windows\SoftwareDistribution" /grant %username%:F /T
  • Wait for the process to complete, which ensures your user account has Full Control over the update directory.

Step 4: Run SFC and DISM Scans

If the error is caused by missing or damaged system files, the System File Checker (SFC) and Deployment Image Servicing and Management (DISM) tools can repair the Windows image.

  • In Command Prompt (Admin), type sfc /scannow and press Enter.
  • After the scan finishes, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
  • Once both scans are complete, Restart your PC and try updating again.

Step 5: Perform a Clean Boot

Third-party applications or antivirus software can sometimes block Windows from accessing necessary files. A Clean Boot starts Windows with only the essential drivers and services.

  • Press Windows Key + R, type msconfig, and press Enter.
  • Go to the Services tab, check Hide all Microsoft services, and click Disable all.
  • Go to the Startup tab and click Open Task Manager. Disable all startup items.
  • Restart your PC. If the update works in this state, one of your third-party apps was causing the 0x80070005 error.

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


Category: #OS