0x80070005

Fix Windows Update error 0x80070005 – permission problem

Windows Errors Intermediate 👁 1 views 📅 May 29, 2026

Access denied error when Windows Update tries to install files. Usually a permissions or registry lock. Here’s how to fix it without wasting time.

The 30-second fix: reset Windows Update components automatically

If you're seeing 0x80070005, it's almost always because the Windows Update service doesn't have the right permissions to write to the temp folders or registry keys. The quickest way to test this is to use the built-in Windows Update troubleshooter. Go to Settings > Update & Security > Troubleshoot > Additional troubleshooters > Windows Update and run it. I've seen this fix about 1 in 8 cases – it's not great but it's free.

If that doesn't work, download the Microsoft Windows Update Troubleshooter from the official site. Run it as administrator. It'll check for common issues like corrupted files or misconfigured services. Last week I had a client with a Surface Pro 7 that threw 0x80070005 after a failed driver update – the troubleshooter fixed it in under a minute. If it works, you're done here.

The 5-minute fix: reset SoftwareDistribution and catroot2 manually

If the quick fix didn't cut it, the next step is to nuke the Windows Update cache. This is where 0x80070005 often hides – the update files get corrupted or permissions get locked down by a previous failed install. Here's what you do:

  1. Open Command Prompt as Administrator. Don't skip that – you need admin rights.
  2. Type: net stop wuauserv and press Enter.
  3. Then: net stop cryptSvc
  4. Then: net stop bits
  5. Then: net stop msiserver
  6. Now rename the two key folders: ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
  7. And: ren C:\Windows\System32\catroot2 catroot2.old
  8. Restart the services: net start wuauserv, net start cryptSvc, net start bits, net start msiserver

After this, try Windows Update again. I've seen this fix about 60% of 0x80070005 cases. The error usually pops up because the update system can't write to those folders due to a lock or permission issue. Renaming them forces Windows to create fresh ones with default permissions. If you're still stuck, move to the next step.

The 15+ minute fix: repair registry permissions

If the error persists, the problem is deeper – probably the registry keys that control Windows Update got their permissions scrambled. This happens often after a third-party cleanup tool or antivirus gets overzealous. I had a client last month whose McAfee installation had locked down several registry hives. Here's how to check and fix:

  1. Press Win+R, type regedit, and hit Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate.
  3. Right-click the WindowsUpdate key, select Permissions.
  4. Make sure SYSTEM and Administrators have Full Control. If not, add them.
  5. Also check HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing – same permissions fix.

If you're not comfortable editing the registry, you can use the Microsoft tool Subinacl or PowerShell to reset permissions wholesale. But the manual check is safer. After fixing those keys, restart the Windows Update service and retry. If that doesn't work, you might need to run a DISM and SFC scan:

  1. Open Command Prompt as Admin.
  2. Type: DISM /Online /Cleanup-Image /RestoreHealth and wait (this can take 15-30 minutes).
  3. Then: sfc /scannow
  4. Restart and check updates.

I've only had to go this deep a handful of times – usually the first two steps solve it. If you've tried all three and still get 0x80070005, you're looking at a corrupted Windows image that might need a repair install or a fresh Windows setup. But don't panic – that's rare. Try these three steps in order and you'll likely be done in under 10 minutes.

Was this solution helpful?