How to fix error 0x80070002 in Windows 11/10
0x80070002 means "The system cannot find the file specified." Windows throws this when it tries to access a file or registry entry that doesn't exist or got moved. You'll see it most often during Windows Update, but it can also pop up when opening apps, running Task Scheduler tasks, restoring backups, or during a clean install.
Why this happens
- Windows Update is looking for files that were deleted or never downloaded properly
- The SoftwareDistribution folder has corrupt or incomplete update files
- System files are damaged or missing
- A scheduled task points to a program that no longer exists
- Date and time settings are wrong, which messes up certificate checks
- A third party antivirus is blocking access to update files
1. Run the Windows Update troubleshooter
Start with the built-in troubleshooter. It catches more than you'd expect.
Windows 11: Settings > System > Troubleshoot > Other troubleshooters, click Run next to Windows Update.
Windows 10: Settings > Update & Security > Troubleshoot > Additional troubleshooters, pick Windows Update.
Let it finish, reboot, and try the update again.
2. Check your date and time
This one is easy to miss. If your clock is off, Windows can't validate certificates for update servers, so it refuses to download anything. Instead of saying "your clock is wrong" it throws 0x80070002.
Right-click the clock in the taskbar, pick Adjust date/time. Turn on Set time automatically and Set time zone automatically. Click Sync now under "Synchronize your clock." Reboot and retry.
3. Clear the Windows Update cache
Stale or corrupt files in the download cache cause this more than anything else. Open Command Prompt as admin and run:
net stop wuauserv
net stop bits
net stop cryptSvc
Delete the cached downloads:
del /f /s /q C:\Windows\SoftwareDistribution\Download\*
Start the services back up:
net start wuauserv
net start bits
net start cryptSvc
Reboot and check for updates. Windows will re-download everything fresh.
4. Reset Windows Update components
If clearing the cache wasn't enough, do a full reset. Stop the services, rename the cache folders, start them back up. Open Command Prompt as admin:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
Rename the cache folders:
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old
Start the services:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
Reboot and check for updates. Delete the .old folders once everything works.
5. Run SFC and DISM
Missing or corrupted system files cause this error more often than you'd think. Open Command Prompt as admin:
sfc /scannow
If SFC finds problems it can't fix, hit it with DISM:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
RestoreHealth pulls clean copies of damaged files from Microsoft's servers, so you need internet. When it's done, run sfc /scannow one more time and reboot.
6. Check Windows Update service settings
Sometimes the update service itself isn't set up right. Press Win+R, type services.msc, and look for these:
- Windows Update — should be Manual (Trigger Start) or Automatic
- Background Intelligent Transfer Service — should be Automatic
- Cryptographic Services — should be Automatic
If any of them are Disabled or Stopped, right-click, pick Properties, change the startup type, and start the service. Reboot and retry.
7. Fix broken scheduled tasks
If 0x80070002 shows up in Event Viewer tied to Task Scheduler, a task is trying to run a program that isn't there anymore.
Open Task Scheduler (Win+R, type taskschd.msc). Look through the task library for tasks with a "Last Run Result" of 0x80070002. Click on the broken task, go to the Actions tab, and check what program it's trying to run. If the program was uninstalled or moved, either update the path or delete the task.
8. Temporarily disable antivirus
Some antivirus programs block Windows Update from accessing its own files. Temporarily disable your third party antivirus, run the update, then turn it back on.
If updates work with the antivirus off, add these folders to the exclusion list:
C:\Windows\SoftwareDistributionC:\Windows\System32\catroot2
Windows Defender doesn't usually cause this.
9. Manually install the failing update
If one specific update keeps failing, grab it directly from the Microsoft Update Catalog. Search for the KB number shown in Windows Update, download the standalone installer for your architecture (x64 or ARM64), and run it yourself.
You can find the KB number in Settings > Windows Update > Update history where the failed update is listed.
Last resort: in-place upgrade
If nothing above worked, download the Windows Media Creation Tool from Microsoft. Run it, pick "Upgrade this PC now", keep your files and apps. This reinstalls Windows on top of itself without wiping your data. It replaces all system files and resets update components, which clears out whatever broken state was behind the error.