0x80070002
The system cannot find the file specified (0x80070002)
A system file is missing β commonly appears after a failed Windows Update or sfc error
Root cause
Windows cannot locate a file it expected. In a DLL context this usually means a failed Windows Update left system components undeployed, or sfc detected a missing file but could not repair it.
Fix paths (try in order)
-
Run System File Checker
Open PowerShell or Command Prompt as Administrator and run these commands in order:
sfc /scannow DISM /Online /Cleanup-Image /RestoreHealth -
Run Windows Update
Settings β Update & Security β Windows Update β Check for updates. Install all optional updates and driver updates, then reboot.
-
Run the Media Creation Tool for an in-place repair install
Download the Media Creation Tool for Windows 11/10 from microsoft.com/software-download. Choose "Keep personal files and apps" to run an in-place upgrade β Windows will refill the missing system files itself.