What the error means
0x80070002 is a general Windows error code, not one that belongs only to Windows Update. Microsoft's DISM repair article lists it as ERROR_FILE_NOT_FOUND with the description "The system cannot find the file specified." Microsoft's consumer Windows Update page gives an even shorter meaning: "Update failed to install." Neither page says which file was missing, so treat this as a generic meaning. The code tells you Windows Update, or Windows Setup, went looking for something it expected and did not find it.
Where you see the code changes what it most likely means. In Settings, under Windows Update and then Update history, it usually points to an incomplete download or a damaged update store. During a feature upgrade it often appears with an extended code after a dash, such as 0x80070002 - 0x20009. Microsoft ties that pair to partition checks made by Setup, which is a disk layout problem rather than a download problem.
The fuller walkthrough for failed Windows 11 updates is in Windows 11 update stuck or failing. This page stays with what Microsoft documents for this one code.
Common causes
- A restart is pending, or another program was holding files the update needed.
- Not enough free space to stage the update. Microsoft asks for at least 16 GB free on a 32-bit system and 20 GB on a 64-bit system.
- Missing or damaged files in the update cache or the component store. The DISM article lists 0x80070002 among its common corruption errors.
- During an upgrade, a second disk that holds an older system partition. Microsoft says the
0x20009errors can be caused by multiple system partitions.
How to fix it
1. Restart, then run the Windows Update troubleshooter
Microsoft's first step for this code is a plain restart, so that no other application is blocking the update. Then run the troubleshooter. On Windows 11 go to Start, Settings, System, Troubleshoot, Other troubleshooters, find Windows Update and select Run. On Windows 10 go to Start, Settings, Update & Security, Troubleshoot, Additional troubleshooters, then Windows Update and Run the troubleshooter. Check for updates again when it finishes.
2. Make sure there is enough free space
Check the system drive in File Explorer. If you are below 16 GB free on a 32-bit system or 20 GB on a 64-bit system, free up space before retrying. Microsoft notes that a PC with a small drive may need a USB drive plugged in to complete the update.
3. Disconnect extra disks if the code ends in 0x20009
If the error appeared during an upgrade as 0x80070002 - 0x20009, disconnect or temporarily disable any drive you are not installing Windows on, especially an old system drive that was left in the PC. Microsoft says you can reconnect it after the upgrade completes. This step does not apply to a normal monthly update that fails in Settings.
4. Reset the update cache
This step comes from the advanced troubleshooting section of Microsoft's Windows Update page, which it recommends only if you are comfortable with the command line. Open Command Prompt as administrator and run these commands one at a time, letting each finish, then restart the PC:
net stop bits
net stop wuauserv
ren %systemroot%\softwaredistribution softwaredistribution.bak
ren %systemroot%\system32\catroot2 catroot2.bak
net start bits
net start wuauservRenaming the folders keeps the old copies, and Windows builds fresh ones on the next scan.
5. Repair the component store with DISM, then SFC
Because Microsoft lists 0x80070002 as a corruption error, its DISM procedure applies. From an elevated Command Prompt run the two commands below, wait for "The restore operation completed successfully", let the SFC scan reach 100%, then run Windows Update again. DISM writes its findings to %windir%\Logs\CBS\CBS.log.
DISM.exe /Online /Cleanup-image /Restorehealth
sfc /scannowIf nothing works
Open CBS.log and look for the entries around the time of the failure. They often name the missing file or package. If one update keeps failing, Microsoft's DISM article explains how to find the matching update in the Microsoft Update Catalog and use it as a repair source. If the PC still will not update, Microsoft's last option is a clean installation of Windows, so back up your files first.
What we checked
On 2026-11-19 we read four Microsoft pages that mention 0x80070002. The Windows Update troubleshooting page on support.microsoft.com lists it as "Update failed to install" and gives the restart, troubleshooter and disk space steps. The Microsoft Learn article on fixing Windows Update corruption lists it as ERROR_FILE_NOT_FOUND and documents the DISM and SFC repair. The upgrade errors page and the Windows 10 upgrade resolution procedures both cover 0x80070002 - 0x20009 and the extra system partition cause. We read the vendor documentation; we did not reproduce the error on a test PC.
Last checked: 2026-11-19.