# Windows 0x80070005: Windows Error Code 0x80070005 (E_ACCESSDENIED)

> **Quick Answer:** Windows error `0x80070005` directly translates to **`E_ACCESSDENIED`** ('Access is denied'): Windows lacks necessary permissions to modify required files, registry keys, OneDrive folders, or COM/DCOM activation objects. Start by running as **Administrator** under an Administrator Windows profile, verifying **Properties -> Security** Read/Write/Full Control rights on locked folders, temporarily disabling strict third-party antivirus/ransomware folder shields, and running `DISM /Online /Cleanup-Image /RestoreHealth` + `sfc /scannow` in an elevated Terminal. If triggered during Windows Activation, check Component Services (`dcomcnfg`) for missing `SELF` DCOM permissions ($0 DIY fix).

- **URL:** https://faultcodes.org/software/windows-0x80070005
- **Category:** Windows, Gaming & Tech
- **Brand / Standard:** Windows
- **System Area:** Windows Update & Permissions
- **Severity:** Moderate — Plan Repair
- **Safe to Operate?:** Yes (Short Term)
- **DIY Difficulty:** Easy (Basic Tools)
- **Updated:** 2026-11-22T00:00:00Z

## What This Fault Code Means
In Microsoft COM/Win32 HRESULT codes, `0x80070005` combines facility `7` (`Win32`) with code `5` (`ERROR_ACCESS_DENIED` / `E_ACCESSDENIED`). Official Microsoft documentation traces it across four common contexts: Windows Update agents blocked from system/registry paths, application installers lacking admin privileges, OneDrive backup blocked by locked user directories, and Windows Activation failing when the `SELF` principal loses DCOM launch/access rights.

## Technical Thresholds & Specifications
| Parameter / Condition | Factory Spec / Threshold | Note |
| --- | --- | --- |
| HRESULT / Win32 Mapping | 0x80070005 = E_ACCESSDENIED (Win32 Error 5) | Process lacks NTFS file, registry key, or COM security rights |
| Official Activation DCOM Cause | Missing `SELF` rights in Component Services (`dcomcnfg`) | Check My Computer -> Properties -> COM Security if activation fails |
| Built-In File Repair CLI | DISM ... /RestoreHealth followed by `sfc /scannow` | Repairs corrupted system binaries & update servicing store |
| Common Trigger Contexts | Windows Update, OneDrive Backup, Store, Installers | Often blocked by Controlled Folder Access or third-party AV |

## Commonly Affected Models & Service Bulletins
- Windows 10 & Windows 11 Windows Update / Cumulative Patch installations
- OneDrive Known Folder Move (Documents / Desktop / Pictures backup locks)
- Windows Activation & Component Services (`dcomcnfg`) permission misconfigurations

## Common Symptoms
- Windows Update or Microsoft Store fails to install patches/apps with popup `0x80070005`
- OneDrive backup refuses to sync Documents/Desktop folders or software installers fail to extract
- Windows Activation or Network Access Protection errors citing missing permissions

## Most Likely Root Causes
- Standard non-administrator user account or installer launched without **Run as administrator** elevation
- Corrupted NTFS folder ACLs / missing **SYSTEM** or **Administrators** Full Control permissions on update, OneDrive, or registry keys
- Missing **`SELF`** permissions inside Component Services -> DCOM Config (documented Microsoft cause for Windows Activation `0x80070005`)
- Third-party antivirus / Controlled Folder Access blocking write operations or damaged Windows system files (`sfc /scannow`)

## Tools & Parts Reference
- Windows Administrator user profile / elevated Terminal
- System File Checker & DISM (`sfc /scannow`, `DISM /RestoreHealth`)
- Component Services console (`dcomcnfg`) for DCOM activation faults

## Step-by-Step Troubleshooting & Fix
1. Right-click the failing app/installer -> **Run as administrator**, sign into a full Administrator Windows profile, and temporarily pause third-party antivirus ransomware/registry shields during updates.
2. Check target directory permissions (Right-click -> Properties -> **Security** -> Edit) to ensure your account, `SYSTEM`, and `Administrators` hold Read/Write/Full Control (for OneDrive sync `0x80070005`, sign out & unlink OneDrive -> confirm Documents/Desktop folder permissions -> re-link).
3. Open **Terminal (Admin)** and run `DISM /Online /Cleanup-Image /RestoreHealth` followed by `sfc /scannow` to repair protected Windows system files and update store ACLs; reset `C:\Windows\SoftwareDistribution` if Windows Update stays stuck.
4. For **Windows Activation `0x80070005`:** Press `Win + R` -> run `dcomcnfg` -> expand Component Services -> Computers -> My Computer -> DCOM Config, verify default security / check `SELF` permissions are not stripped under Computer Properties -> Default Properties / COM Security, reboot, and retry activation.

## Estimated Repair Cost Benchmark
| Currency | DIY Parts Only | Professional Repair (Parts + Labor) |
| --- | --- | --- |
| USD | $0–$0 | $55–$130 |
| GBP | £0–£0 | £45–£100 |
| CAD | CA$0–CA$0 | CA$70–CA$170 |
| EUR | €0–€0 | €50–€120 |
| CHF | CHF 0–CHF 0 | CHF 75–CHF 165 |

## Frequently Asked Questions
### What does error code 0x80070005 literally mean?
In Microsoft Windows, `0x80070005` is the hexadecimal code for **`E_ACCESSDENIED`** ('Access is denied')—meaning a process was blocked from reading or writing required files, registry entries, or COM/DCOM permissions.

### Does `sfc /scannow` erase my personal files when fixing 0x80070005?
No. Microsoft's **System File Checker (`sfc /scannow`)** only scans and restores protected Windows OS system binaries without touching your personal documents, apps, or photos.


## Verified Official & Engineering References
- [Microsoft Learn: Common Windows Update Errors (0x80070005)](https://learn.microsoft.com/en-us/troubleshoot/windows-client/installing-updates-features-roles/common-windows-update-errors) (Official Support)
- [Microsoft Support: System File Checker (SFC.exe) Repair Guide](https://support.microsoft.com/en-us/windows/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e) (Technical Manual)
