Windows Update · Windows 11
Fix Windows Update error 0x80070002
Windows Update error 0x80070002 means an update cannot find files it expects, usually in a damaged download cache or component store. Clear the cache first, then repair the component store with DISM and SFC in order.
What you need
- An administrator account. The later steps stop services, rename a system folder, and run repair commands in a terminal opened as administrator. Sign in with an admin account before you start.
- A working internet connection. The repair step downloads clean component files from Windows Update, and the update itself has to download again after the cache is cleared.
- About an hour, most of it waiting. The component store repair and the system file check each take a while. Start when the PC can sit and finish them — interrupting a repair halfway leaves the same fault in place.
Read the error before you touch it
- Know what the code means. Error 0x80070002 is the file-not-found error: Windows Update went looking for a file it expected — in its download cache or in the component store — and the file was not there or did not match. That is why the same update fails at the same point every time. Retrying alone does not change anything, because nothing about the missing file changes between tries.
- Note which update fails, and how. In Settings > Windows Update, note the update's name and whether it fails while downloading, while installing, or right at the start. A failure at the start or during download points at the cache. A failure during install, after a clean download, points deeper, at the component store — which is where this guide ends up either way.
- Check for a pending restart. If Windows is already waiting to restart to finish an earlier update, later updates can fail behind it. Restart the PC once before anything else and try the update again. It is the cheapest step in this guide and it clears a surprising number of update errors on its own.
The simple fixes, in order
- Check the date, time, and free drive space. Open Settings > Time & language > Date & time and confirm the time is set automatically and is actually correct — update checks fail in odd ways when the clock is wrong. Then check the system drive in File Explorer: an update needs room to download and stage its files, so if the drive is nearly full, free several gigabytes before going further.
- Run the Windows Update troubleshooter. Go to Settings > System > Troubleshoot > Other troubleshooters and run the Windows Update troubleshooter. It checks the update services, the cache, and common configuration faults, and fixes the simple ones itself. Microsoft covers the troubleshooter and the standard update checks in Troubleshoot problems updating Windows. Try the update again when it finishes.
- Restart the update services and rename the download cache. If the troubleshooter did not clear it, the cached download itself is the next suspect. Open the Services app — search for Services from the Start menu — and stop the Windows Update service and the Background Intelligent Transfer Service. Then, in File Explorer, go to the Windows folder and rename the SoftwareDistribution folder to something like SoftwareDistribution.old. Restart both services, then restart the PC. Windows builds a fresh SoftwareDistribution folder and downloads the update again from scratch — a damaged cached copy can no longer be the missing file.
The advanced route: DISM, then SFC
- Repair the component store with DISM. If a fresh cache still fails with the same code, the missing files are in the component store itself — the store Windows installs features and updates from. Open Windows Terminal or Command Prompt as administrator and run
DISM /Online /Cleanup-Image /RestoreHealth. DISM compares the store against Windows Update and replaces damaged or missing component files with clean ones. Microsoft documents this repair in Repair a Windows image. Let it run to completion, even if the progress bar sits still for a long stretch. - Run the system file check with SFC. In the same administrator terminal, run
sfc /scannow. SFC checks the installed system files against the component store you just repaired and replaces any that are damaged or missing. The order matters: DISM first, so the store is sound, then SFC, so it has good files to repair from. Running SFC alone against a damaged store can leave it with nothing clean to copy. - Restart, then retry the update from Settings. Restart the PC when both commands have finished, go to Settings > Windows Update, and check for updates. Let the update that failed with 0x80070002 download and install. If it asks for another restart to finish, give it that restart before judging the result — several updates only complete across a restart.
End state
- The update that failed with 0x80070002 downloads and installs, and Windows Update reports the PC is up to date.
- DISM finished its repair and SFC finished its scan in an administrator terminal, in that order.
- The system drive has free space to spare and the date and time are set automatically.
When it goes wrong
- The update hangs at one percentage instead of failing with a code. A stuck update is a different fault from a missing-file error, with a different order of checks. The guide to a Windows update stuck at a percentage covers that one directly.
- DISM reports it cannot find the source files. DISM repairs from Windows Update by default, so a blocked connection or a proxy that intercepts it can starve the repair. Check the connection, turn off a VPN, and run DISM again before trying anything more involved.
- SFC says it found corrupt files it could not fix. Run the DISM repair once more, restart, and run SFC again — a store repaired after the first SFC pass often lets the second pass finish the job. If it still cannot fix them, note the exact files it names; that narrows the fault considerably.
- The SoftwareDistribution folder will not rename. A service is still holding it. Confirm both the Windows Update service and the Background Intelligent Transfer Service show as stopped in the Services console, close any Settings window open on the Windows Update page, and rename it again.
Related fixes
-
Fix Windows Update error 0x80073712
Windows Update error 0x80073712 means a file the update needs is missing or damaged in the component store. There is no cache trick for this one: repair the component store with DISM first, then run SFC, then update again.
-
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 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 0x80070490
Error 0x80070490 usually means a component Windows Update depends on is damaged or missing, so the same update fails the same way every time. Run the troubleshooter first, then repair the component store with DISM before System File Checker, and check for the update again.
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.