sodcalculator

10 Tech How-To

Error 0x80070005: Fix Access Denied in Windows

Guide 10-60030 · Updated · Step by step

Error code 0x80070005 means “Access Denied” — Windows could not complete an operation because the current user account lacks the necessary permissions to a file, folder, or registry key. This guide explains the common causes and provides step-by-step fixes to resolve the error, from adjusting folder permissions to repairing system files.

What Does 0x80070005 Mean?

The error code 0x80070005 is a Windows system error that translates to “Access is denied.” It appears when an application or Windows component tries to read, modify, or delete a protected resource — like a system file, a registry key, or a folder in Program Files — without the required rights. The error is common during Windows Updates, software installations, and when accessing certain folders after a system migration.

Common Scenarios and Causes

You might see 0x80070005 in several situations, each with its own trigger:

  • Windows Update fails — The update service cannot access the SoftwareDistribution folder, often due to corrupted permissions or a third-party antivirus interfering.
  • Installing software — The installer lacks admin rights, or the target folder (e.g., Program Files) has restrictive ACLs.
  • Accessing a network drive or shared folder — The share permissions or NTFS permissions do not grant your user account access.
  • After a system restore or migration — Ownership of files may be assigned to an old SID (Security Identifier), leaving the new account without access.
  • Registry edits — You try to modify a key that requires SYSTEM or TrustedInstaller permissions.

How to Fix 0x80070005

Work through these fixes in order. Many users resolve the issue at step 1 or 2.

  1. Run the affected program as administrator. Right-click the program (or the installer) and choose “Run as administrator.” If it works, the issue is a missing admin token.
  2. Check folder permissions. Right-click the folder causing the error → Properties → Security tab → Edit → select your user → check “Full control” under Allow. Apply and retry. Be cautious: granting Full control on system folders can be risky.
  3. Take ownership. If the Security tab shows “You need permission to view these permissions,” take ownership: right-click → Properties → Security → Advanced → Change owner → type your username → OK. Then grant yourself Full control.
  4. Run the Windows Update troubleshooter. Settings → Update & Security → Troubleshoot → Additional troubleshooters → Windows Update → Run. This can reset update components automatically.
  5. Reset Windows Update components manually. Open Command Prompt as admin and run the following commands one by one:
    • net stop wuauserv
    • net stop cryptSvc
    • net stop bits
    • ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    • ren C:\Windows\System32\catroot2 catroot2.old
    • net start wuauserv
    • net start cryptSvc
    • net start bits

    Then restart your PC and try Windows Update again.

  6. Run SFC and DISM. In an elevated Command Prompt, run sfc /scannow. If it finds issues, run DISM /Online /Cleanup-Image /RestoreHealth afterward.
  7. Disable third-party antivirus temporarily. Some security software locks system folders. Disable real-time protection, try the operation, then re-enable it.

Understanding Permissions and Ownership

Windows uses two layers of permissions: NTFS permissions (set on the file/folder) and Share permissions (set on the network share). The effective permission is the most restrictive of the two. If you are accessing a network resource, check both. Ownership is different: the owner can always change permissions, even if they are denied. Taking ownership is often the key when the error persists after granting permissions.

When the Error Appears in Windows Update

If 0x80070005 occurs during Windows Update, the SoftwareDistribution folder is often the culprit. This folder stores temporary update files. If its permissions are corrupted, the update service cannot write to it. The manual reset commands in step 5 above are the most reliable fix. Also ensure the Windows Update service is set to start automatically: press Win + R, type services.msc, find “Windows Update,” set Startup type to Automatic, and start it.

Frequently Asked Questions

Is 0x80070005 dangerous?

No, it is a permission error, not a sign of malware. It simply means Windows blocked an operation due to insufficient rights. However, if you see it when accessing unexpected files, it could be a symptom of a deeper issue, like a corrupted user profile.

Can I ignore this error?

You can ignore it if the operation is not essential. For example, if a game mod fails to install, you can skip it. But if Windows Update fails, you should fix it — otherwise you miss security patches.

Why does it happen even when I am an administrator?

Windows separates standard admin rights from elevated rights. Even an admin runs most programs with a limited token. You must explicitly “Run as administrator” or use a command prompt opened as admin. Also, some operations require SYSTEM or TrustedInstaller privileges, which even admins don’t have by default.

Does this error occur on Windows 10 and Windows 11?

Yes, both versions can show 0x80070005. The fixes are identical for both. If you are on Windows 11, the Settings menu layout is slightly different, but the troubleshooting steps remain the same.

What if none of these fixes work?

Try creating a new user account and see if the error occurs there. If not, your current profile may be corrupted. You can also perform a repair upgrade using the Windows Media Creation Tool — this reinstalls Windows while keeping your files and apps.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →