Windows Update · Windows 11
Fix Windows Update error 0x80070005
Windows Update error 0x80070005 is an access-denied error: something the update needs to change is blocked by permissions, a service, or security software. Restore the update services and folders first, then repair the system files underneath.
What you need
- An administrator account. The fixes restart services, rename update folders, and run repair commands, and none of that works from a standard account.
- A working internet connection. The update downloads again once the cache is rebuilt, and the repair step pulls clean files from Windows Update.
- About 45 minutes. Most of it is the troubleshooter, a restart, and the repair commands running to completion.
Read the error before you touch it
- Know what the code means. Error 0x80070005 is the access-denied error. Windows Update reached a file, folder, or registry key it needs to change and was refused. The update itself is rarely the problem — the block in front of it is.
- Note when it appears. In Settings > Windows Update, note which update fails and whether the code appears at download, at install, or at the restart. A refusal during install, after a clean download, points at permissions on the folders and services the installer writes to.
- Think about what changed. A new antivirus, a hardening tool, or a moved system folder can all tighten permissions Windows Update depends on. If the error started right after a security change, that change is the first suspect, ahead of the update itself.
The simple fixes, in order
- Restart, then run the troubleshooter. Restart the PC once to clear any pending update work, then go to Settings > System > Troubleshoot > Other troubleshooters and run the Windows Update troubleshooter. It resets common service and permission faults itself. Microsoft covers it in Troubleshoot problems updating Windows. Try the update again when it finishes.
- Check the update services are allowed to run. Open the Services app and find Windows Update and Background Intelligent Transfer Service. Each should start — set Windows Update to Manual if it is set to Disabled, start both services, and note any service that refuses to start, because that refusal is the access problem showing itself.
- Pause third-party security software for one attempt. If you run antivirus or endpoint protection beyond Windows Security, pause it briefly and try the update once. Security software that scans or locks the update folders as files land can produce exactly this code. Turn it straight back on afterward, whatever the result.
- Rebuild the download folders. Stop the Windows Update and Background Intelligent Transfer services, then in File Explorer rename the SoftwareDistribution folder in the Windows folder to SoftwareDistribution.old, and the catroot2 folder in System32 to catroot2.old. Restart both services and the PC. Windows rebuilds both folders with fresh permissions, so a folder the installer could not write to is replaced rather than argued with.
The advanced route: repair the files underneath
- Repair the component store with DISM. Open Windows Terminal or Command Prompt as administrator and run
DISM /Online /Cleanup-Image /RestoreHealth. A damaged component store can hand the installer files it then cannot replace. Microsoft documents the repair in Repair a Windows image. Let it finish, even if progress pauses for a while. - Run the system file check with SFC. In the same administrator terminal, run
sfc /scannow. SFC replaces damaged system files — including service files the update depends on — from the store DISM just repaired. The order matters: DISM first, then SFC. - Retry the update from Settings. Restart the PC, go to Settings > Windows Update, and check for updates. Install the update that failed with 0x80070005 and give it any restart it asks for before judging the result.
End state
- The update that failed with 0x80070005 downloads and installs, and Windows Update reports the PC is up to date.
- The Windows Update and Background Intelligent Transfer services both start without an error.
- Any security software paused for the test is turned back on.
When it goes wrong
- A service refuses to start with its own access-denied message. That service is now the fault, not the update. Note its exact message — it names the file or account being refused, which narrows the repair considerably.
- The folders will not rename. A service is still holding them. Confirm both services show as stopped, close the Settings window on the Windows Update page, and rename again.
- The error returns only for one update. A single stubborn update with healthy services points back at its own staged files. Rebuild the folders once more so that update downloads completely fresh, then try it alone.
- DISM cannot find source files. DISM repairs from Windows Update by default, so check the connection, turn off a VPN, and run it again before anything more involved.
Related fixes
-
Fix Windows Update error 0x80070422
Error 0x80070422 means a service Windows Update needs is disabled or cannot start. It is one of the clearest update errors: find the Windows Update service, set it to run, and start it. If the service will not stay running, repair the files underneath it.
-
Fix Windows Update error 0x8024a203 or a stuck 'checking for updates' spinner
Windows Update sitting on checking for updates, or failing with error 0x8024a203, usually means a stuck update service or a damaged download cache rather than a broken update. Restart the services first, clear the cache next, and repair the system files only if the spinner survives both.
-
Fix Windows Update error 0x800f081f
Error 0x800f081f means Windows Update could not find the source files it needs to finish an update. Repair the component store with DISM first, then run System File Checker, and the same update usually installs cleanly on the next try.
-
Fix Windows Update error 0x80072ee2
Error 0x80072ee2 is a timeout: Windows Update tried to reach the update servers and the connection took too long or never completed. The fault is in the connection path, a proxy or VPN, a firewall, or the update folders. Clear the path first, then rebuild the folders, then repair files only if the timeout survives a clean connection.
Sources
- Microsoft Support, Troubleshoot problems updating Windows — the Windows Update troubleshooter and the standard checks for updates that fail to install.
- Microsoft Learn, Repair a Windows image — repairing the component store with DISM before running the system file check.
- Microsoft Support, Using System File Checker in Windows — running SFC and DISM to repair missing or corrupted system files.