If your Windows PC is freezing, crashing, showing random errors, or running slower than usual, corrupted system files could be part of the problem. Windows includes built-in repair tools that can scan for damaged files and replace them when possible.
The main tool for this job is System File Checker, often referred to by its main command: SFC /scannow. In Windows 10 and Windows 11, you can also run DISM /RestoreHealth before using SFC to repair the Windows system image and give SFC a better chance of fixing corrupted files.
In this guide, you’ll learn how to fix corrupted system files in Windows 10 and Windows 11 using DISM /RestoreHealth and SFC /scannow, what the Windows Resource Protection messages mean, and what to do if SFC cannot repair all files.
Fix Corrupted System Files in Windows 10 and 11
To fix corrupted system files in Windows 10 or Windows 11, run DISM /RestoreHealth first and then use SFC /scannow from Command Prompt as administrator. DISM repairs the Windows image, while SFC checks and repairs protected system files.
- Open Command Prompt as administrator
Open the Start menu, type cmd, right-click Command Prompt, and select Run as administrator. If Windows asks for permission, click Yes.

- Run the DISM /RestoreHealth command
In the administrator Command Prompt window, type the following command and press Enter:
DISM.exe /Online /Cleanup-Image /RestoreHealth
DISM can take several minutes and may appear to pause during the process. This is normal, so leave the Command Prompt window open until the command finishes. - Run the SFC /scannow command
After DISM completes, keep the same Command Prompt window open and run System File Checker with this command:
SFC /scannow
This will scan protected Windows system files and repair corrupted files when possible. - Wait for the scan to reach 100%
Do not close Command Prompt while the SFC scan is running. The scan can take several minutes, and on some computers it may take longer.

- Read the final message and restart your PC
When the scan finishes, read the final Windows Resource Protection message. If SFC repaired files, restart your PC and check if the problem is fixed.
Why Run DISM Before SFC?
If the Windows repair image is damaged, SFC /scannow may not be able to fix corrupted system files on its own. That is where DISM /RestoreHealth can help. DISM repairs the Windows image that SFC may use during the repair process. That is why it is usually a good idea to run DISM /RestoreHealth first, then run SFC /scannow.
What the Windows Resource Protection Messages Mean
After running SFC /scannow, Windows will show one of several Windows Resource Protection messages. Here is what each one means and what you should do next.
Windows Resource Protection did not find any integrity violations
This means SFC did not find any corrupted or missing protected system files. If your PC is still having problems, the issue may be caused by something else, such as a driver, a recent update, a third-party program, malware, disk errors, or a hardware problem.
If your main issue is that your computer is slow on startup, you may also want to check startup apps, Fast Startup, storage space, and drive performance before assuming system files are corrupted.
Windows Resource Protection found corrupt files and successfully repaired them
This means SFC found damaged system files and repaired them successfully. In this case, restart your computer and check if the original problem is gone.
Windows Resource Protection found corrupt files but was unable to fix some of them
This means SFC found corrupted files, but it could not repair everything. Try this:
- Restart your PC.
- Run DISM /RestoreHealth again:
DISM.exe /Online /Cleanup-Image /RestoreHealth - Run SFC /scannow again:
SFC /scannow
If the message still appears, you may need to check the SFC log, run the scan in Safe Mode, use System Restore to roll Windows back to an earlier date, or try other Windows recovery options.
Advanced users can also review the CBS.log file or create an sfcdetails.txt file to see which files were affected.
Windows Resource Protection could not perform the requested operation
This means SFC could not complete the scan. Try running SFC /scannow in Safe Mode. You can also run DISM /RestoreHealth first, then try SFC again from Command Prompt as administrator.
Final Thoughts
SFC /scannow is one of the easiest ways to check and repair corrupted system files in Windows 10 and Windows 11. For better results, run DISM /RestoreHealth first, then use System File Checker from Command Prompt as administrator.
After SFC finishes, restart your PC and check whether the problem is fixed. When SFC cannot repair everything, try running DISM and SFC again, use Safe Mode, or check the SFC log for more details.
For more serious Windows problems, you may need to use System Restore or, as a last resort, factory reset Windows.





