TL;DR: How to repair Windows system files with SFC and DISM
The fix only. No explanation, no diagnosis. Read the full article if any of this does not match what you are seeing.
- Open an elevated Command Prompt (search for cmd, then Run as administrator).
- Repair the component store first:
DISM.exe /Online /Cleanup-Image /RestoreHealth- Then check and repair the system files, and restart if it asks:
sfc /scannow- Run
sfc /scannowagain until it says no integrity violations were found. - If DISM says the source files could not be found (0x800f081f), point it at matching install media and stop it using Windows Update:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:1 /LimitAccessThe media must be the same Windows version as the PC and patched to the latest cumulative update. List the image indexes with DISM /Get-ImageInfo /ImageFile:D:\sources\install.wim.