0x80070005 🪟 Windows

Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied

Windows refused an operation because the account or process lacks permission — seen in Windows Update, installers, Task Scheduler, COM and file operations.

Seen on: Windows

Meaning

0x80070005 wraps the Win32 error 5, ERROR_ACCESS_DENIED. The operation needed rights the current user/service doesn’t have, the file/registry key is locked by another process, or security software blocked it.

Common causes

  • Not running as administrator (UAC)
  • Folder/registry permissions changed or inherited incorrectly
  • Antivirus / Controlled Folder Access blocking the write
  • Windows Update: corrupted SoftwareDistribution or permissions on system folders
  • Scheduled task / service running as an account without rights
  • File in use by another process

⚡ Quick fix

  1. Run the app/installer “As administrator”
  2. Temporarily allow the app in Windows Security → Ransomware protection
  3. Repair system files: sfc /scannow then DISM /Online /Cleanup-Image /RestoreHealth
  4. For Windows Update, reset its components (below)

Detailed fix by platform

Windows

  1. Reset Windows Update components (elevated Command Prompt):
    bat
    net stop wuauserv & net stop bits & net stop cryptsvc
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 catroot2.old
    net start cryptsvc & net start bits & net start wuauserv
  2. Take ownership and grant access to a folder:
    bat
    takeown /f "D:\Data" /r /d y
    icacls "D:\Data" /grant "%USERNAME%":F /t

How to diagnose

  1. Context — Which operation: update, install, file copy, service, COM?
  2. Account — Which user/service account runs it, elevated or not?
  3. Target — Permissions on the file/folder/registry key involved
  4. Security software — Any blocks in Windows Security / antivirus history?

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.