Problems with corrupted Windows system files
If you are experiencing “system file corruption” symptoms, abnormal shutdowns, disk errors, etc. can be considered as possible causes. Please check in order starting from Step 1 ‘Check Windows system files’.
First, check that this guide matches your problem
Do you have these symptoms?
- System file corruption
- SFC error
- Windows features not working properly
- DISM required
Common causes
- Unexpected shutdown
- Disk error
- Update failed
How to fix
5 steps, 1 hr 35 min–4 hr 40 min in total. The easiest checks come first, so stop as soon as the problem is fixed.
Corrupted system files can create boot, explorer, app, and update problems.
- Open a terminal or command prompt with administrator privileges.
- Run
DISM /Online /Cleanup-Image /RestoreHealth. - After completion, run
sfc /scannow. - When the scan is finished, restart your PC.
DISM /Online /Cleanup-Image /RestoreHealthsfc /scannowWhat to check
If sfc reports that it found corrupt files and repaired them, restart and check the symptom. If it says some files could not be repaired, check CBS.log.
Did this step fix it?
When sfc ends by saying some files could not be repaired, you need the log to see which files remain before deciding the next step.
- This command is for command prompt (cmd) only. If you open an administrator terminal (PowerShell), first type cmd to change to the command prompt.
- In an administrator Command Prompt, run findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfcdetails.txt".
- In the sfcdetails.txt file created on the desktop, look for file names marked Cannot repair.
- Run DISM again, then run
sfc /scannowonce more and see whether the same files remain.
sfc /scannowWhat to check
If the rescan finds no errors, you are done. If the same files remain or DISM fails, run DISM with installation media as the source.
Did this step fix it?
By default DISM downloads source files from Windows Update, so if the update components are also damaged or there is no internet, it can fail with errors such as 0x800f081f (source files could not be found).
- Download an ISO of the same Windows version and language from Microsoft's official site and double-click it to mount it. The examples below assume it mounted as drive D:.
- Use dism /Get-WimInfo /WimFile:D:\sources\install.wim to find the index number of your installed edition (Home, Pro, etc.). If the file is install.esd, change the file name in the path.
- Run
DISM /Online /Cleanup-Image /RestoreHealth/Source:wim:D:\sources\install.wim:1 /LimitAccess. Replace the trailing 1 with the index you found, and for an esd file use esd: instead of wim:.
DISM /Online /Cleanup-Image /RestoreHealthWhat to check
When DISM completes, run sfc /scannow again. If it fails even with installation media, check the disk's health and then do a repair install.
Did this step fix it?
Corrupted system files or recurring app errors may be due to storage or recent system changes.
- First check the SMART status using CrystalDiskInfo or the storage device manufacturer tool. If there are warnings, back up before error checking.
- If there are no warnings, run a check in Explorer under C Drive Properties → Tools → Error Checking.
- Check the system utilities and drivers installed immediately before the problem.
- If necessary, review installing System Restore or Recovery.
What to check
If there are disk errors or SMART warnings, back up and replace the drive before trying repairs. If the disk is healthy but the corruption remains, do a repair install.
Did this step fix it?
Advanced steps from here
These steps are hard to undo or involve working with hardware or system settings directly. If you are not confident, you can take your results so far to a repair service instead.
If SFC and DISM cannot fix it, an in-place upgrade rewrites all the system files. You can choose to keep your personal files and apps.
- First back up important files to an external drive or the cloud.
- Run
setup.exefrom the mounted ISO, and keep a laptop plugged into its charger. - Under "Choose what to keep", select keep personal files and apps, and continue.
- On recent versions of Windows 11, you can do the same reinstall from Settings → System → Recovery → "Fix problems using Windows Update". If that option is missing, use the ISO method.
What to check
If sfc /scannow finishes without errors after the repair install, you are done. If corruption comes back even after that, run storage or memory diagnostics.
Did this step fix it?
Frequently asked questions
Related problems
If the symptoms do not match exactly, please check the issue below.
Related error codes
If the code below appears on the screen, refer to the confirmation procedure for each error.
CRITICAL_PROCESS_DIEDEnd essential process
A critical process required by Windows terminated, causing the system to stop.
Windows0x8007000DThe data is invalid
The data used for the operation is corrupted or is not in the expected format.
Windows Update0x800F081FRepair source files not found
The source required to repair Windows components or install features was not found.
Windows Update0x800F0906Feature source files couldn't be downloaded
A file required to install an optional feature could not be downloaded.
Windows Update0x80073712Component store corruption
Required information in the Windows component store is corrupted or missing.