Every guide lists its sources, tips, and warnings. Read our editorial policy.

Error 0x80070005 During Windows Update: 6 Fixes That Work

Error 0x80070005 means access was denied while Windows Update tried to write its files. Reset the update cache and its services, remove the antivirus blocking, and the update usually completes on the next try.

The short answer

0x80070005 is ERROR_ACCESS_DENIED. Run the update as administrator, pause third-party antivirus, then reset the update cache: stop the update services, rename `C:\Windows\SoftwareDistribution`, restart the services, and run the update again.

Download the full guide (PDF) Print checklist
Share
Set 52runoob as a preferred source on Google

Windows Update downloads fine, starts installing, then rolls back with `0x80070005: Access is denied.` The download is fine — Windows itself is refusing to write its own update files. The usual suspect is a locked-down update cache folder or a security tool watching it too closely, and the fix is to hand the keys back.

Quick steps

  1. Run the update again as administrator first
  2. Pause third-party antivirus real-time scanning
  3. Stop wuauserv, bits, cryptsvc and msiserver
  4. Rename C:\Windows\SoftwareDistribution to .old
  5. Restart the four services and run the update
  6. Repair system files with sfc and DISM if it still fails

Things you'll need

  • An administrator account on the PC
  • At least 20 GB free on the system drive
  • Fifteen minutes of time for the services reset
  • Your antivirus console, if you run one that is not Defender

Step-by-step

Method 1 of 3

Method 1 of 3: Quick Fixes Before Touching the Cache

PDF
Step 1: Run the Update Once More as Administrator Download image

Step 1: Run the Update Once More as Administrator

Sign in with an administrator account and run Windows Update again. Access-denied errors sometimes come from a standard-user session trying to install a cumulative update that needs elevation. If it gets past the rollback point this time, you are done.

Step 2: Pause Third-Party Antivirus Download image

Step 2: Pause Third-Party Antivirus

Security tools that watch system folders block update writes and produce exactly this error. Open your antivirus console and disable real-time protection for the next half hour — every major vendor has a temporary switch. Leave Windows Defender alone; it never blocks updates. Run the update, then turn the shield back on.

Step 3: Disconnect VPNs and Proxies Download image

Step 3: Disconnect VPNs and Proxies

A VPN client that installs its own network filter can interfere with the download verification step. Disconnect the VPN, and in `Settings > Network > Proxy` make sure no manual proxy is configured. Run the update on the plain connection before assuming anything else is wrong.

Step 4: Check Free Disk Space Download image

Step 4: Check Free Disk Space

Feature updates unpack into the update cache and need room to stage. Open `Settings > System > Storage` and make sure the system drive has at least 20 GB free. Below that, writes start failing in ways that surface as access errors. Run Disk Cleanup or empty the Recycle Bin, then retry.

Step 5: Use the Built-In Update Troubleshooter Download image

Step 5: Use the Built-In Update Troubleshooter

Go to `Settings > System > Troubleshoot > Other troubleshooters` and run Windows Update. The troubleshooter checks service registrations and cache permissions — the two things 0x80070005 is usually about — and resets what it can without a command line. Run the update after it finishes.

Method 2 of 3

Method 2 of 3: Reset the Update Cache and Its Services

PDF
Step 6: Stop the Four Update Services Download image

Step 6: Stop the Four Update Services

Open an elevated terminal — right-click Start, choose Terminal (Admin). Stop the services in order: `net stop wuauserv`, `net stop bits`, `net stop cryptsvc`, `net stop msiserver`. These hold the cache folder open, and the rename in the next step fails while any of them is running.

Step 7: Rename the SoftwareDistribution Folder Download image

Step 7: Rename the SoftwareDistribution Folder

Still in the elevated terminal, run `ren C:\Windows\SoftwareDistribution SoftwareDistribution.old`. This folder holds the downloaded update files, and when its permissions or contents are damaged, every install fails with access denied. Renaming forces Windows to rebuild it clean on the next run. The .old copy stays as evidence and can be deleted later.

Step 8: Rename the Catroot2 Folder as Well Download image

Step 8: Rename the Catroot2 Folder as Well

Run `ren C:\Windows\System32\catroot2 catroot2.old`. Catroot2 holds the cryptographic signatures for update packages, and a damaged signature store also blocks the install. Like SoftwareDistribution, Windows rebuilds it automatically.

Step 9: Restart the Services You Stopped Download image

Step 9: Restart the Services You Stopped

Bring the services back in any order: `net start wuauserv`, `net start bits`, `net start cryptsvc`, `net start msiserver`. Watch each one report it started successfully. If a service refuses to start, note which — that service itself is the next thing to repair rather than the cache.

Step 10: Run the Update Again and Watch the Cache Rebuild Download image

Step 10: Run the Update Again and Watch the Cache Rebuild

Open Windows Update and check for updates. The download restarts from zero into a fresh SoftwareDistribution folder with default permissions. Installs that failed at the same percentage every time almost always pass after this reset, because the folder being written to is brand new.

Method 3 of 3

Method 3 of 3: Deeper Repairs When the Error Returns

PDF
Step 11: Repair System Files With SFC Download image

Step 11: Repair System Files With SFC

If the reset cache still gets access-denied writes, the protected system files are involved. Run `sfc /scannow` in an elevated terminal and let it finish. SFC checks the files Windows Update depends on and restores any that were modified or removed.

Step 12: Rebuild the Component Store With DISM Download image

Step 12: Rebuild the Component Store With DISM

Follow SFC with `DISM /Online /Cleanup-Image /RestoreHealth`. DISM repairs the component store that updates are installed from, pulling clean copies from Microsoft's servers when the local ones are damaged. When it reports completion, run `sfc /scannow` once more to confirm, then retry the update.

Step 13: Install the Update Manually From the Catalog Download image

Step 13: Install the Update Manually From the Catalog

Every update exists as a standalone package. Note the KB number that fails, go to the Microsoft Update Catalog, download the `.msu` for your architecture, and run it by double-clicking. The standalone installer uses a different code path than the automatic service and bypasses the cache entirely.

Step 14: Try a Clean Boot Before Updating Download image

Step 14: Try a Clean Boot Before Updating

Third-party services can block the install even when their antivirus shield is off. Run `msconfig`, hide all Microsoft services, disable the rest, disable startup items, and reboot into the clean state. Run the update there. If it installs, re-enable services in halves to find the blocker.

Step 15: Reset Windows Update Components via Repair Install Download image

Step 15: Reset Windows Update Components via Repair Install

If everything fails, download the Windows installation media for your version and run `setup.exe`, choosing `Keep files and apps`. This repair-install re-registers every update component and service without touching your data. It is the last resort before assuming hardware trouble, and it resolves update errors that survive every other fix.

Tips

  • 0x80070005 is always a permissions problem. If the cache reset fixes it once but it returns, look for what keeps changing the folder's permissions — usually a security tool.
  • The four-service reset fixes the majority of update errors, not just this one. Keep the commands saved.
  • Renaming beats deleting. If the rebuild fails, you still have the .old folders to put back.
  • The Microsoft Update Catalog needs the exact KB number — find it in Settings > Windows Update > Update history.

Warnings

  • Do not delete SoftwareDistribution while any of the four services is running — the rename fails and the cache stays locked.
  • Never interrupt an update rollback. Let it finish reverting before you start fixing, or the component store ends up half-patched.
  • Disabling antivirus for an update is a thirty-minute exception, not a setting. Turn it back on right after.
  • Do not take manual ownership of Windows system folders. Reset permissions with the cache rename instead.

Frequently asked questions

Why did Windows deny access to its own update folder?

Because something changed the folder's permissions or is holding it open — most often an antivirus watching it, a cleanup tool that took ownership, or a damaged cache from an interrupted update. The rename forces Windows to rebuild the folder with default permissions.

Is it safe to rename SoftwareDistribution?

Yes. Windows recreates it on the next check. Your update history list stays intact because that lives elsewhere, though the failed updates need to download again.

The update fails at the same percentage every time. What does that mean?

A fixed failure point means a specific cached file is damaged or locked. That is exactly what the cache reset clears. If it survives the reset, the failure point maps to a system file instead — that is when SFC and DISM come in.

Can I just skip the failing update?

You can hide it temporarily, but cumulative updates contain each other — skipping one month means next month's includes the same files and fails the same way. Fix the cache instead; it takes fifteen minutes.

References

  1. Microsoft Learn — System Error Codes 0–499 (0x80070005, ERROR_ACCESS_DENIED). https://learn.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-
  2. Microsoft Support — Windows Update troubleshooting. https://support.microsoft.com/en-us/windows/windows-update-troubleshooting-51bc34b5-06f1-4f7b-80b2-8c5a4a9b8a2c
  3. Microsoft Support — Use System File Checker in Windows. https://support.microsoft.com/en-us/windows/using-system-file-checker-in-windows-365e0031-36b1-6031-f804-8fd86e0ef4ca
  4. Microsoft Learn — Repair a Windows image with DISM. https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/repair-a-windows-image
  5. Microsoft — Microsoft Update Catalog. https://catalog.update.microsoft.com/
  6. Microsoft Support — How to perform a clean boot in Windows. https://support.microsoft.com/en-us/topic/how-to-perform-a-clean-boot-in-windows-da2f9573-6eec-00ad-2f8a-97a2b7b6fb24

Every guide is reviewed against its sources. See our editorial policy.

Get one fix like this every week

One short email with the most useful new guide and a printable checklist. No spam, unsubscribe anytime.

Reader comments

0 so far

Finished this guide? Tell other readers what worked, what didn't, and what you would change.

Stuck on a step? Tell us your device model and what happened — an editor reads every comment and usually replies within 48 hours.

Be kind and constructive. Comments are published instantly.