Error 0x80070005 is Windows telling you, in its blunt way, that access was denied. When it appears in Windows Update, it means the installer tried to read or write files it needs and the operating system refused. The update itself is probably fine; the problem is that something, permissions, antivirus, or corruption, is standing between the installer and the files it must touch.
This error frustrates people because retrying never helps. The same blocked operation fails identically every time until the underlying access problem is fixed. The causes are specific and diagnosable: wrong permissions on system folders, an antivirus product blocking servicing writes, a damaged user profile, or corrupted system files confusing the security subsystem.
This guide targets each cause directly with seven ordered fixes. You will check the simple things first, reset the relevant permissions safely, isolate antivirus interference, and repair system files as the final measure. If you are hitting a different code instead, our guides on 0x80070002 and 0x800f0900 cover those.
Why this happens
- Incorrect folder permissions: Wrong ACLs on SoftwareDistribution or system folders block the installer’s writes.
- Antivirus blocking file operations: Security suites intercept servicing writes and Windows reports access denied.
- Corrupted user profile: A damaged profile context can break the security tokens update services rely on.
- Broken system files: Corruption in the security or servicing components produces false access failures.
- Third-party permission tools: Privacy utilities that lock down folders can over-block system paths.
- Stuck service credentials: Update services running under wrong credentials fail privileged operations.
- Disk errors: File system corruption can manifest as access denied on damaged sectors.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Run the Windows Update troubleshooter
The automated tool checks service states and common configuration problems that can surface as access errors. It also re-registers update components and verifies that the cryptographic and transfer services have the permissions they need, which clears many 0x80070005 instances without any manual work on your part.
- Open Settings, System, Troubleshoot, Other troubleshooters.
- Run the Windows Update troubleshooter and apply its fixes.
- Restart the laptop.
- Retry the update and note whether the code persists.
Fix 2: Temporarily disable third-party antivirus
Isolate the most common external cause quickly before touching permissions.
- Open your antivirus suite and disable real-time protection until restart.
- Keep Windows Defender active as the safety net.
- Run Windows Update and attempt the failing update.
- If it succeeds, the antivirus was blocking the operation.
- Re-enable protection and add exclusions for Windows Update paths if the suite allows.
Fix 3: Reset the Windows Update cache with correct ownership
Clear the cache folders, which also resolves permission drift inside them.
- Open Command Prompt as administrator.
- Run
net stop wuauserv,net stop cryptSvc,net stop bits,net stop msiserver. - Run
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old. - Run
ren C:\Windows\System32\catroot2 catroot2.old. - Restart the services with
net startand reboot. - Retry the update with fresh, correctly permissioned folders.
Fix 4: Verify the update services run correctly
Services running under wrong accounts or stuck states generate access errors.
- Open services.msc and find Windows Update.
- Confirm Startup type is Manual and the service can start.
- Check the Log On tab shows Local System account.
- Verify Background Intelligent Transfer Service and Cryptographic Services similarly.
- Restart the laptop and retry.
Fix 5: Check disk for file system errors
Rule out disk-level corruption masquerading as access denied.
- Open Command Prompt as administrator.
- Run
chkdsk C: /fand approve the scan on next restart. - Restart and let the disk check complete fully.
- After booting, retry the Windows Update.
- If chkdsk found and fixed errors, the access failures may be resolved.
Fix 6: Test with a fresh administrator account
A corrupted user profile can break the security context. A new account isolates this cleanly.
- Go to Settings, Accounts, Other users, and add a new local administrator account.
- Sign out and sign in to the new account.
- Run Windows Update from the new account.
- If updates succeed there, migrate to the new profile.
- If they fail identically, the problem is system-wide, not profile-specific.
Fix 7: Repair system files with DISM and SFC
Fix corruption in the security and servicing components as the final repair.
- Open an elevated Command Prompt.
- Run
DISM /Online /Cleanup-Image /RestoreHealthto 100 percent. - Run
sfc /scannowand wait for verification. - Restart the laptop.
- Retry the update and confirm 0x80070005 is gone.
If you want the fuller DISM picture — what each switch does, how long it really takes, and when to point it at an explicit source — our DISM RestoreHealth walkthrough covers the pass in detail.
Microsoft’s general update guidance is at https://support.microsoft.com/en-us/windows .
Fix 8: Reset ACLs on the Windows Update folders
When permissions on the update folders themselves are wrong, the installer hits access denied no matter how healthy the rest of the system is. Resetting the access control lists on SoftwareDistribution and its related folders restores the default permissions the servicing stack expects. This is a targeted permission repair, not a system-wide change, so it carries none of the risk of broad permission resets while directly addressing the 0x80070005 cause.
- Open Command Prompt as administrator.
- Stop the update services:
net stop wuauserv,net stop cryptSvc,net stop bits. - Take ownership of the folder:
takeown /f C:\Windows\SoftwareDistribution /r /d y. - Reset its permissions:
icacls C:\Windows\SoftwareDistribution /reset /t /c /q. - Restart the services with
net startand reboot the laptop. - Retry the update with correctly permissioned folders in place.
Closing
Error 0x80070005 is a permissions story, not a download story, so the fix is restoring access: quiet the antivirus, reset the cache folders, verify service accounts, check the disk, and repair system files. Work the sequence in order and the access denied wall comes down in most cases at step two or three. Once updates flow again, avoid permission-tweaking utilities that caused the drift in the first place.
