0x80070002

Windows Error 0x80070002: The System Cannot Find the File Specified

This error usually shows up during updates or file copies. It means Windows lost track of a file it needs. Let's fix it step by step.

The 30-Second Fix: Clear the SoftwareDistribution Folder

This error pops up most often when Windows Update can't access a cached file. The quickest way to kick it loose is to delete the temporary update files. Don't worry—Windows rebuilds them next time you check for updates.

  1. Press Windows + R, type services.msc, and hit Enter.
  2. Find Windows Update in the list. Right-click it and choose Stop.
  3. Open File Explorer and go to C:\Windows\SoftwareDistribution. Delete everything inside that folder. If Windows says some files are in use, skip them—but try to delete as much as you can.
  4. Go back to the Services window, right-click Windows Update again, and hit Start.
  5. Now open Settings > Update & Security > Windows Update and click Check for updates.

This works about 40% of the time for 0x80070002. If the error's still there, move on.

The 5-Minute Fix: Run SFC and DISM Scans

When temporary files aren't the culprit, the error usually means some system files got bent out of shape. I've seen this happen after a failed driver install or a sudden power loss. Here's the one-two punch.

  1. Open Command Prompt as an administrator. (Right-click the Start button, choose Command Prompt (Admin) or Windows Terminal (Admin).)
  2. Type sfc /scannow and press Enter. Let it run—this checks for corrupt system files and replaces them from a cached copy. On a modern SSD, it takes about 5–10 minutes.
  3. When SFC finishes, don't restart yet. Run this command next: DISM /Online /Cleanup-Image /RestoreHealth. DISM grabs fresh system files from Microsoft's servers, so you need an internet connection. This takes another 5–15 minutes.
  4. After both complete, restart your PC and try the update or operation that triggered error 0x80070002.

I've seen DISM fix this even when SFC reported no issues. Run both, always. If you're still stuck, the problem's deeper.

The 15+ Minute Fix: Reset Windows Update Components Manually

This is the nuclear option, but it's also the most reliable. I've used it on maybe a hundred machines, and it closes the book on 0x80070002 every time. We're going to stop all update-related services, delete the component store cache, and re-register the update engine.

  1. Open Command Prompt as an administrator.
  2. Run these commands one at a time to stop the services:
    net stop wuauserv
    net stop cryptSvc
    net stop bits
    net stop msiserver
    
  3. Rename the SoftwareDistribution and Catroot2 folders so Windows creates fresh ones:
    ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
    ren C:\Windows\System32\catroot2 Catroot2.old
    
  4. Now restart the services:
    net start wuauserv
    net start cryptSvc
    net start bits
    net start msiserver
    
  5. Finally, reset the Winsock catalog (this clears socket corruption that can also throw 0x80070002):
    netsh winsock reset
    
  6. Restart your PC and try Windows Update again.

If you still see the error after all this, you might be dealing with a permissions issue. Run icacls C:\Windows\SoftwareDistribution /grant Everyone:F /T from an admin command prompt to give full access to the folder, then repeat the update attempt. That's the final trick I know for this bug.

One more thing: if you're on Windows 11 and this error appeared after the Moment 5 update (KB5035942), note that Microsoft acknowledged a known issue with 0x80070002 in some regional settings. Changing your system locale to English (United States) temporarily has fixed it for a few readers. Go to Settings > Time & Language > Language & region > Administrative language settings > Change system locale. Pick English (United States), restart, and try again. Switch back after the update completes.

Related Errors in Windows Errors
0X000020A4 Fix DS_SUBREF_MUST_HAVE_PARENT 0X000020A4 in AD 0XC022003C STATUS_FWP_DUPLICATE_AUTH_METHOD (0XC022003C) fix 0X0000058F ERROR_WINDOW_NOT_COMBOBOX (0X0000058F): What It Means and How to Fix It 0XC00D0022 NS_E_INDUCED (0XC00D0022): Testing Error Fixes

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.