How to Fix "Error 0x80070005: Access Denied" During Windows Updates
Understanding Error 0x80070005: Access Denied During Windows Updates
When attempting to install critical security patches, feature updates, or even driver updates for your Windows operating system, you might encounter the frustrating "Error 0x80070005: Access Denied." This error message typically appears within the Windows Update interface, halting the download and installation process abruptly. It signifies that Windows Update cannot access or modify the necessary files or registry keys required to complete the update operation. This prevents your system from receiving important security enhancements and new functionalities, leaving it vulnerable.
The "Access Denied" component of this error is key. It means that the user account or system process attempting to perform the update lacks the necessary permissions. This is not an issue with corrupted update files themselves, but rather with the system's ability to manipulate them. The error can manifest at various stages of the update process, from downloading files to applying them, but the root cause remains the same: a permission-related roadblock.
Why Error 0x80070005 Occurs
The primary reason behind Error 0x80070005 is a configuration issue with file or registry permissions within the Windows operating system. These permissions are crucial for maintaining system stability and security, dictating which users and processes can read, write, or execute specific files and system components. When these permissions become incorrectly set, perhaps due to aggressive third-party security software, manual user modifications, or even malware, Windows Update can be blocked from accessing essential files.
Another common culprit is the Windows Update service itself not running with the correct administrative privileges. Services operate under specific user contexts, and if the Windows Update service is somehow restricted from accessing its required system directories (like SoftwareDistribution), the "Access Denied" error will occur. Furthermore, corrupted system files, particularly those related to the Windows Update components, can also lead to permission discrepancies and trigger this error.
Step-by-Step Solution
This section provides a series of actionable steps to systematically resolve the "Error 0x80070005: Access Denied" during Windows Updates. It's recommended to proceed through these steps sequentially.
## Step 1: Run the Windows Update Troubleshooter
The built-in Windows Update Troubleshooter is designed to automatically detect and fix common update-related problems, including permission issues.
- Navigate to Settings > Update & Security (Windows 10) or Settings > System > Troubleshoot (Windows 11).
- Click on Additional troubleshooters (Windows 10) or Other troubleshooters (Windows 11).
- Select Windows Update and click Run the troubleshooter.
- Follow the on-screen prompts. The troubleshooter will attempt to identify and fix any issues it finds.
- Once completed, restart your computer and attempt to run Windows Update again.
## Step 2: Ensure Windows Update Service is Running and Configured Correctly
The Windows Update service must be running and set to start automatically for updates to download and install properly.
- Press Windows Key + R, type
services.msc, and press Enter. - In the Services window, locate Windows Update.
- Double-click on Windows Update.
- Under the "Startup type" dropdown, select Automatic.
- If the service is not running, click the Start button.
- Click Apply and then OK.
- Restart your computer and try updating again.
## Step 3: Reset the SoftwareDistribution Folder
This folder stores the downloaded Windows Update files. Corrupted files within this folder can cause various update errors, including access issues.
- Stop the Windows Update service and the Cryptographic Services.
- Press Windows Key + R, type
cmd, right-click on Command Prompt, and select Run as administrator. - In the administrator Command Prompt, type the following commands, pressing Enter after each:
net stop wuauserv net stop cryptSvc
- Press Windows Key + R, type
- Rename the
SoftwareDistributionfolder.- Still in the administrator Command Prompt, type:
ren %systemroot%\SoftwareDistribution SoftwareDistribution.old
- Still in the administrator Command Prompt, type:
- Restart the Windows Update service and the Cryptographic Services.
- In the administrator Command Prompt, type:
net start wuauserv net start cryptSvc
- In the administrator Command Prompt, type:
- Close the Command Prompt, restart your PC, and try running Windows Update.
## Step 4: Check and Correct File System Permissions
This is a more advanced step and requires careful execution. It involves checking and correcting the permissions of the catroot2 and qmgr folders, which are crucial for the Windows Update process.
- Open an administrator Command Prompt by pressing Windows Key + R, typing
cmd, right-clicking on Command Prompt, and selecting Run as administrator. - Stop the
BITS(Background Intelligent Transfer Service) andwuauserv(Windows Update) services:net stop bits net stop wuauserv - Navigate to the
System32directory:cd %windir%\System32 - Rename the
catroot2folder.ren catroot2 catroot2.old - Restart the
BITSandwuauservservices:net start bits net start wuauserv - Restart your computer and attempt to run Windows Update.
## Step 5: Run System File Checker (SFC) and DISM Tools
Corrupted system files can interfere with update processes. SFC and DISM can repair these files.
- Open an administrator Command Prompt.
- Run the System File Checker:
This process can take some time.sfc /scannow - After SFC completes, run the Deployment Image Servicing and Management (DISM) tool to repair the Windows image:
DISM /Online /Cleanup-Image /RestoreHealth - Once both scans are complete, restart your computer and try Windows Update again.
## Step 6: Check Permissions for the Windows Update Agent
In rare cases, the permissions for the Windows Update agent itself might be misconfigured.
- Press Windows Key + R, type
regedit, and press Enter to open the Registry Editor. - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate. - Right-click on the WindowsUpdate key, select Permissions.
- Ensure that your user account and the
SYSTEMaccount have Full Control or at least Read and Write permissions. If not, click Add, enterSYSTEMand your username, then grant appropriate permissions. - Click Apply and OK.
- Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate. - Repeat step 4 for this key, ensuring
SYSTEMand your user account have the necessary permissions. - Close the Registry Editor, restart your PC, and try updating.
Common Mistakes
A frequent mistake users make is attempting to manually change permissions on individual update files or folders without understanding the consequences. This can inadvertently worsen the problem by further corrupting the system's permission structure. Another common pitfall is disabling or interfering with essential Windows services (like the Windows Update service or BITS) when trying to troubleshoot, which halts the update process entirely. Additionally, relying solely on third-party antivirus software to "fix" update errors without understanding its actions can sometimes lead to misconfigurations that trigger the 0x80070005 error. Users might also skip the restart steps after applying fixes, which is crucial for changes to take effect.
Prevention Tips
To prevent "Error 0x80070005" from recurring, maintain a proactive approach to system health. Regularly run the Windows Update troubleshooter, even when no errors are apparent, as it can catch potential issues early. Ensure your antivirus and firewall software are up-to-date but also configure them carefully to avoid overly aggressive scanning that might block legitimate Windows processes. Avoid making manual, deep system configuration changes unless you have a thorough understanding of their implications. Keep your operating system and all installed applications updated, as outdated software can sometimes create compatibility issues that lead to permission conflicts. Finally, perform regular system backups so you can quickly restore your system to a working state if a problematic update or configuration change occurs.