Encountering the 0x80070005 error code on Windows 11 can be incredibly frustrating. Also known as the 'Access Denied' error, it typically occurs when Windows Update or a specific application lacks the necessary file permissions to complete a task. This error often surfaces during a Windows Update, software installation, or system restoration.
As a professional tech blogger, I have seen this issue stem from aggressive antivirus software, corrupted system files, or misconfigured administrative rights. Here is your comprehensive, step-by-step guide to fixing the Windows 11 0x80070005 error once and for all.
Step 1: Run the Windows Update Troubleshooter
Before diving into advanced settings, always start with the built-in diagnostic tools. Windows 11 includes a dedicated troubleshooter designed to find and fix common update glitches automatically.
- Go to Settings > System > Troubleshoot.
- Click on Other troubleshooters.
- Locate Windows Update and click the Run button next to it.
- Wait for the tool to detect issues and apply any suggested fixes.
Step 2: Grant Full Control Permissions to Your User Account
Since this is an 'Access Denied' error, it often means your user account doesn't have the required permissions for the AppData folder where updates are temporarily stored.
- Press Windows + R, type %localappdata%, and press Enter.
- Find the Packages folder, right-click it, and select Properties.
- Go to the Security tab and click Advanced.
- Ensure your user account has Full Control. If not, click Add, select your principal, and check the Full Control box.
- Check the box that says 'Replace all child object permission entries' and click Apply.
Step 3: Reset the Windows Update Components
If the update files themselves are corrupted, resetting the Windows Update 'SoftwareDistribution' folder can force the system to download clean copies.
- 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
- Now, rename the folders by typing:
- ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
- ren C:\Windows\System32\catroot2 catroot2.old
- Restart the services by typing:
- net start wuauserv
- net start cryptSvc
- net start bits
- net start msiserver
Step 4: Run SFC and DISM to Repair System Files
Corrupted system files are a frequent cause of 0x80070005. The System File Checker (SFC) and Deployment Image Servicing and Management (DISM) tools are the best ways to repair the Windows image.
- Open Command Prompt as an administrator.
- Type sfc /scannow and press Enter. Wait for the verification to reach 100%.
- Once finished, type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
- Restart your computer after the process completes and try the update again.
Step 5: Disable Third-Party Antivirus Software
Third-party antivirus programs (like Avast, McAfee, or Bitdefender) can sometimes block Windows from modifying its own system files. Disable your antivirus temporarily and attempt to run the Windows Update. If the update succeeds, you may need to uninstall the antivirus and rely on Windows Defender or check for a software update from the antivirus provider.
Step 6: Use the Microsoft Update Catalog (Manual Fix)
If the error persists specifically for one update, you can bypass the Windows Update interface entirely.
- Note the KB number of the failing update (e.g., KB5034765).
- Visit the Microsoft Update Catalog website.
- Search for the KB number and download the MSU file for your architecture (x64).
- Double-click the file to install the update manually.
💡 Pro Tip: Keep your software updated to avoid these issues in the future.
Category: #OS