If you want the definitive, no-guesswork procedure for error 0x80070002, this is it. Rather than a menu of things to try, this guide is a single ordered sequence: each step builds on the last, each has a clear success check, and you stop the moment the error is gone. No step is destructive, and none touches your personal files.
Error 0x80070002 means the update installer cannot find files it expects — in practice, a corrupted download cache. The sequence below clears that corruption, verifies the repair held, and then hardens the system against recurrence. Follow it top to bottom and the error resolves.
This sequence assumes a standard single-drive Windows installation with no exotic configuration — which covers the vast majority of laptops. If your system uses a dual-boot setup, a heavily customized partition layout, or third-party disk encryption, mention that to anyone helping you, because those setups add variables this sequence does not cover.
Why this happens
- Corrupted files in the download cache: Partial or damaged update packages in the SoftwareDistribution folder fail verification, producing the missing-file error on every install attempt.
- Inconsistent update database: The DataStore index can point at files that no longer exist, so the installer looks for packages that are not really there.
- Interrupted first download: Sleep, network loss, or shutdown during the initial download leaves fragments that poison subsequent retries.
- Disk-level corruption: File system errors damage cached packages after successful download, recreating the error even with a perfect network.
- Security software interference: Quarantined or blocked update components vanish from the cache, and the installer reports them as missing.
- Wrong system time: Clock skew breaks the secure download verification, so packages arrive in a state the installer rejects as invalid.
- Stuck BITS jobs: Jammed Background Intelligent Transfer Service jobs leave downloads in limbo, neither complete nor restartable, until the queue is reset.
How to fix it
Work through these in order — diagnose first, then act.
Fix 1: Step 1 — Record the error and affected updates
Precision first. Open Settings, Windows Update, Update history, and write down every update showing 0x80070002. Consistent failure across multiple updates confirms the cache diagnosis; a single failing update might instead be a bad package you can install manually. If just one package fails while everything else succeeds, cumulative update install failures covers package-specific causes.
- Open Update history and list each failed update with its code.
- Confirm 0x80070002 is the consistent error.
- Note the update types — cumulative, driver, or feature — for later reference.
- Do not click Retry yet; you will retry after the repair.
Fix 2: Step 2 — Stop the update services
Files in use cannot be deleted reliably. Stopping the four update-related services releases every lock on the cache folders so the cleanup in the next step is complete.
- Open Command Prompt as administrator.
- Run net stop wuauserv.
- Run net stop cryptSvc.
- Run net stop bits and net stop msiserver.
Fix 3: Step 3 — Clear the download cache and reset the database
This is the core repair. Deleting the corrupted downloads and renaming the tracking database forces Windows to rebuild both from scratch — clean files, clean index, no inherited corruption.
- Delete all contents of C:\Windows\SoftwareDistribution\Download.
- Rename C:\Windows\SoftwareDistribution\DataStore to DataStore.old.
- Rename C:\Windows\System32\catroot2 to catroot2.old.
- Leave the folders otherwise intact; Windows recreates what it needs.
Fix 4: Step 4 — Restart the services and rescan
With clean folders in place, restart the services and let Windows Update perform a full fresh scan. This scan rebuilds the database and queues clean downloads of everything pending.
- Run net start wuauserv, net start cryptSvc, net start bits, net start msiserver.
- Open Settings, Windows Update, and click Check for updates.
- Allow the scan to complete without putting the laptop to sleep.
- Install the offered updates and confirm 0x80070002 no longer appears.
Fix 5: Step 5 — Verify the disk if the error returns
A recurring 0x80070002 after a clean rebuild means something is re-damaging the files. The disk check finds file system corruption or bad sectors doing exactly that.
- In an elevated prompt, run chkdsk C: /f.
- Restart when prompted and let the check finish.
- After booting, repeat steps 2 through 4 once.
- If the error stays gone, the disk was the root cause.
Fix 6: Step 6 — Repair system files and harden the setup
The final hardening pass repairs the update engine itself and removes the common recurrence triggers: wrong clock, jammed BITS queue, and interfering security software. Finish with one automated pass: the Windows Update troubleshooter catches anything the manual sequence missed. Microsoft’s Windows support pages publish error-code-specific guidance worth checking against your code.
- Run DISM /Online /Cleanup-Image /RestoreHealth, then sfc /scannow.
- Enable Set time automatically in Date and time settings.
- Run bitsadmin /reset /allusers to clear any jammed transfer jobs.
- Check the antivirus quarantine for update files and add exclusions if it keeps flagging them.
Fix 7: Step 7 — Install the last stubborn package manually
Occasionally the repair succeeds generally but one specific package still fails with 0x80070002 because that package’s metadata is bad on Microsoft’s side rather than yours. For that last holdout, bypass the pipeline: download the package directly from the Microsoft Update Catalog and install it by hand.
- Note the KB number of the remaining failing update.
- Search for it on the Microsoft Update Catalog site.
- Download the x64 package and run it as administrator.
- Verify the install in Update history afterward.
Closing
Error 0x80070002 yields to procedure: record, stop, clear, restart, rescan, and verify. Each step has a purpose, none risks your data, and the success check at step 4 tells you immediately whether the repair held. Follow the sequence exactly as written and this error stops being a recurring headache — permanently.
