How to Fix the Windows 11 ‘0x80070005’ Error (Access Denied during Updates)

When you attempt to download a major feature update via Windows Update, the process might suddenly halt, displaying a red warning flag and the cryptic error code 0x80070005. In Microsoft’s error terminology, this specific hexadecimal string translates directly to “Access Denied.”

This error occurs when the Windows Update service lacks the necessary administrative permissions to replace critical system files, or when a third-party antivirus program aggressively locks down the installation folder. To fix this, you must grant yourself full control of the hidden Software Distribution folder where updates are downloaded, and manually reset the Windows Update components.

How to Fix the Windows 11 0x80070005 Access Denied Error

You can use a built-in command-line tool called SubInACL (or standard PowerShell commands) to reset folder permissions, but the most reliable method for most users is to use the built-in Troubleshooter combined with an administrative reset.

  1. Click the Start button, type cmd, and click Run as administrator on the right side of the search menu. (Click “Yes” on the UAC prompt).
  2. You must stop the core update services so the locked files are released. Type the following commands, pressing Enter after each one: net stop wuauserv net stop cryptSvc net stop bits net stop msiserver
  3. Next, you must rename the locked update folders so Windows is forced to create brand new, properly permissioned folders. Type these commands, pressing Enter after each one: ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 catroot2.old
  4. Finally, restart the update services by typing these commands, pressing Enter after each one: net start wuauserv net start cryptSvc net start bits net start msiserver

Close the Command Prompt window and restart your computer. When Windows 11 boots back up, open the Settings app, navigate to Windows Update, and click “Check for updates.” The service will create fresh download folders with the correct administrative permissions, bypassing the Access Denied error and allowing the update to install smoothly.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.