Error Details
| Fact | Value | Source | Note |
|---|
| Exact error string | 0x80070005 (E_ACCESSDENIED) | Windows Update event log | -> Event ID 20 or 25 |
| Affected build range | Windows 10 / Windows 11 | | |
| Registry key involved | HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\AUOptions | Registry Editor | -> Value 1 |
| Relevant service/endpoint URL | | | |
| Log line signature | Download Failed or Install Failed with error 0x80070005 | CBS log, SoftwareDistribution log | |
Log Files to Check
C:\Windows\SoftwareDistribution\ReportingEvents.logC:\Windows\Logs\CBS\CBS.log
What This Error Actually Means
The error code
0x80070005 (E_ACCESSDENIED) indicates that Windows Update encountered an access denied condition while attempting to download or install updates. This is a generic permission-related error, but in the context of Windows Update, it typically originates from the Windows Update service (
wuauserv) or its dependent services (
BITS,
CryptSvc, or
TrustedInstaller). The error occurs when the system cannot access required files, folders, or registry keys due to insufficient permissions or file locks.
Affected Versions and Scope
This issue affects Windows 10 and Windows 11 across all builds. It is not limited to specific tenant configurations but can occur in both on-premises and Azure AD-joined environments. The error is more prevalent in environments with restrictive Group Policy Objects (GPOs) or where third-party security software interferes with update processes.
Where To Look First: Logs and Event IDs
To diagnose this issue, examine the following logs:
1. **Windows Update event log**:
- Path:
Event Viewer > Applications and Services Logs > Microsoft > Windows > WindowsUpdateClient > Operational
- Look for
Event ID 20 (Download Failed) or
Event ID 25 (Install Failed) with the error code
0x80070005.
2. **SoftwareDistribution log**:
- Path:
C:\Windows\SoftwareDistribution\ReportingEvents.log
- Search for entries containing
AccessDenied or
0x80070005.
3. **CBS (Component Based Servicing) log**:
- Path:
C:\Windows\Logs\CBS\CBS.log
- Look for lines with
Failed or
error 0x80070005.
Root Causes
1. Insufficient Permissions on Windows Update Services
The Windows Update service (
wuauserv) or its child services may be running under an account with insufficient permissions. This can happen if the
TrustedInstaller service lacks necessary privileges.
2. Corrupted SoftwareDistribution Cache
The
C:\Windows\SoftwareDistribution folder, which stores update files, may be corrupted. Windows Update cannot write to this folder if it's in an inconsistent state.
3. Restrictive Group Policy Configuration
A GPO configured via
HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate might restrict update installation to administrators, while the current user lacks elevation privileges.
4. Third-Party Software Interference
Antivirus or endpoint protection software may hold exclusive locks on update staging folders, preventing Windows Update from accessing them.
Fix Procedure
- Run Windows Update Troubleshooter
- Open Settings > System > Troubleshoot > Other troubleshooters > Windows Update.
- Run the troubleshooter and review the generated report for permission-related issues.
- Check Service Status
- Open Services (services.msc).
- Ensure the following services are Running:
- Windows Update (wuauserv)
- Background Intelligent Transfer Service (BITS)
- Cryptographic Services (CryptSvc)
- Windows Installer (msiserver)
- If TrustedInstaller is Stopped, start it manually.
- Reset SoftwareDistribution Folder
- Open an elevated Command Prompt.
- Run:
net stop wuauserv && net stop cryptsvc && net stop bits && net stop msiserver && ren C:\Windows\SoftwareDistribution SoftwareDistribution.old && ren C:\Windows\System32\catroot2 catroot2.old && net start wuauserv && net start cryptsvc && net start bits && net start msiserver
- Check NTFS Permissions
- Use PowerShell to verify permissions:
(Get-Acl 'C:\Windows\SoftwareDistribution').Access | Format-Table
- Ensure SYSTEM and TrustedInstaller have FullControl.
- Review Group Policy Configuration
- Run:
gpresult /H gpo_report.html
- Open gpo_report.html and navigate to Computer Configuration > Windows Settings > Windows Update.
- Check policies like Configure Automatic Updates and Allow non-administrators to receive update notifications.
- Adjust Permissions Using icacls
- Grant FullControl to necessary accounts:
icacls C:\Windows\SoftwareDistribution /grant SYSTEM:F,TrustedInstaller:F
- Configure Intune Policy (Optional)
- Navigate to Intune admin center > Devices > Policies > Create Policy.
- Under Windows 10 and later, configure the following settings:
- ./Device/Vendor/MSFT/Policy/Config/WindowsUpdate/AUOptions set to allow user-initiated updates.
- Disable Conflicting Antivirus Software (Temporary)
- Temporarily disable third-party security products to test if they're causing the issue.
Error Code Variants
| Error Code |
Description |
Distinguishing Factors |
0x80070490 |
Access denied due to insufficient privileges. |
Typically occurs during update installation when the user lacks admin rights. |
0x8024601C |
Windows Update failed to download updates due to access issues. |
Commonly related to network restrictions or proxy configurations. |
Verification
After applying fixes, verify success by:
- Checking Windows Update history for successful update installation.
- Reviewing the
WindowsUpdateClient/Operational log for Event ID 19 (Download Completed) or Event ID 24 (Install Completed).
- Ensuring all relevant services are Running and set to Automatic.
Prevention
To prevent recurrence:
- Set
AUOptions registry value (
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update) to 3 (Install updates automatically).
- Schedule regular maintenance windows to clear the SoftwareDistribution cache.
- Use Intune policies to enforce consistent update behavior across devices.
Tip: Regularly review the C:\Windows\SoftwareDistribution\ReportingEvents.log for recurring access issues and address underlying permission or GPO conflicts proactively.