Skip to content

Windows error inside an HRESULT

0x80070002 ERROR_FILE_NOT_FOUND

The system cannot find a file it was told to use. Seen as 0x80070002 when wrapped as an HRESULT.

Where you will see it

  • Windows Update
  • Starting a program
  • Scheduled tasks

Likely causes, most common first

  • A file was deleted, moved or quarantined by antivirus.
  • An update download is incomplete.
  • A shortcut or task points at an old location.

How to fix it, in this order

Start with the first fix and check the result before moving on; each one says how to tell that it worked.

1. Reset the Windows Update download cache (moderate)

  1. Right-click Start, choose Terminal (Admin) or Windows PowerShell (Admin), and say Yes to the prompt.
  2. Run: net stop wuauserv and then net stop bits
  3. Run: ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
  4. Run: net start bits and then net start wuauserv
  5. Open Settings, Windows Update, and press Check for updates.

It worked if: Windows Update downloads the update again from the start and the error does not come back.

2. Reinstall the program that fails (easy)

  1. Reinstall the program so its files are put back.

It worked if: It starts without the error.

What Microsoft's documentation says

Microsoft's own wording for this code, quoted from the page named under each quote. The plain-English explanation and the fixes above are ours.

“The system cannot find the file specified.”
Listed as ERROR_FILE_NOT_FOUND (2) in System Error Codes (0-499) on Microsoft Learn. Read 22 November 2026.

The same code, written other ways

Search a log or a forum for any of these; they are all this code.

How the code is put together

Read from the bits as Microsoft's [MS-ERREF] Windows Error Codes specification lays them out.

Codes that often come with it

More than one code in your log?

Paste the whole CBS, DISM or Windows Update log into the decoder. It lists every code in it, in order, with the line it was on. Decoded in your browser; nothing is sent.

Open the error code decoder →