Corrupted or missing Windows system files can cause a wide range of problems, including application crashes, Windows features not working correctly, unexpected error messages, slow performance, and startup problems. Fortunately, Windows 11 includes several built-in tools that can detect and repair damaged system components.
The two most important tools for this purpose are System File Checker (SFC) and Deployment Image Servicing and Management (DISM). SFC checks protected Windows system files and replaces corrupted files when possible, while DISM can repair the Windows component store that SFC relies on.
You can also use Windows Update, Safe Mode, and system recovery options when normal repairs do not resolve the problem. The best approach is to start with the least invasive method and move to more advanced repairs only when necessary.
Before running repair commands, save your work and make sure the computer has enough time to complete the operation. Some repairs can take several minutes.
Method 1: Run System File Checker
System File Checker is one of the easiest ways to repair corrupted Windows system files.
- Press Windows + X.
- Select Terminal (Admin).
- Click Yes if User Account Control appears.
- Enter the following command:
sfc /scannow
- Press Enter.
Windows will begin checking protected system files.
The scan may take some time. Do not close Terminal or restart the computer while the scan is running.
When the process finishes, SFC will display a result. Depending on what it finds, you may see messages indicating that:
- No integrity violations were found.
- Corrupted files were found and successfully repaired.
- Corrupted files were found but some could not be repaired.
If SFC successfully repairs the files, restart Windows and check whether the original problem has disappeared.
If SFC says that some files could not be repaired, continue with the DISM method below and then run SFC again.
Method 2: Repair the Windows Component Store With DISM
DISM can repair the Windows component store, which is an important source of system files used by Windows.
Open Terminal as administrator and run:
DISM /Online /Cleanup-Image /RestoreHealth
Press Enter.
DISM will examine the Windows image and attempt to repair detected corruption.
The process can take several minutes. The progress percentage may appear to remain at one value for a while. Avoid closing the Terminal window simply because the progress appears slow.
When DISM finishes, you should receive a message indicating whether the restoration operation completed successfully.
After DISM completes, restart Windows.
It is also recommended to run SFC again:
sfc /scannow
Running DISM first can help repair the component store so that SFC has a healthier source from which to restore corrupted system files.
Method 3: Run DISM Health Checks Before Repairing
If you want to inspect the Windows image before performing a repair, DISM provides several commands.
Open Terminal (Admin) and run:
DISM /Online /Cleanup-Image /CheckHealth
This performs a quick check for previously detected component-store corruption.
You can then use:
DISM /Online /Cleanup-Image /ScanHealth
This performs a more detailed scan.
If Windows detects component-store corruption, use:
DISM /Online /Cleanup-Image /RestoreHealth
The commands can be useful when SFC reports that it cannot repair certain files.
Once DISM has completed its repair, run:
sfc /scannow
This combination is a common approach for repairing Windows system-file corruption.
Method 4: Run SFC From Safe Mode
If Windows is unstable or a background application interferes with normal operation, you can run system-file repairs from Safe Mode.
To enter Safe Mode:
- Open Settings.
- Select System.
- Select Recovery.
- Find Advanced startup.
- Click Restart now.
- After the recovery environment loads, select Troubleshoot.
- Select Advanced options.
- Choose Startup Settings.
- Click Restart.
- Press the appropriate key to start Safe Mode.
Once Windows starts in Safe Mode:
- Open Terminal (Admin).
- Run:
sfc /scannow
Wait for the scan to finish.
Safe Mode starts Windows with a limited set of drivers and services. This can make it useful when normal startup processes are contributing to the problem.
After the repair finishes, restart the computer normally.
Method 5: Install Pending Windows Updates
Corrupted or malfunctioning Windows components can sometimes be addressed by installing available updates.
- Press Windows + I to open Settings.
- Select Windows Update.
- Click Check for updates.
- Install available updates.
- Restart the computer if Windows requests it.
After updating, run SFC again:
sfc /scannow
Keeping Windows updated can also replace system components and address known operating-system bugs.
If Windows Update itself is not working, you can first try restarting the PC and checking again. If the update service remains broken, use the built-in Windows troubleshooting and repair options before attempting more complicated changes.
Method 6: Use System Restore When Corruption Started Recently
If Windows system problems began after installing software, drivers, or making a system change, System Restore may help return Windows to an earlier working state.
System Restore uses available restore points to revert certain system settings and files.
To access it:
- Press Windows + R.
- Type:
rstrui.exe
- Press Enter.
- Follow the System Restore wizard.
- Select an appropriate restore point.
- Review the affected programs if Windows provides that information.
- Start the restore process.
System Restore does not function like a complete personal-file backup. Your important documents should still be backed up separately.
If no restore points are available, this method cannot be used.
After the restoration finishes, restart Windows and check whether the system behaves normally.
Method 7: Repair Windows Using an In-Place Installation
If SFC and DISM cannot resolve serious system corruption, an in-place Windows repair can be a more comprehensive option while allowing you to keep your personal files and applications when the installation options support it.
The process uses Windows installation media or an official Windows installation source.
Before starting:
- Back up important files.
- Make sure the Windows edition and language are appropriate for your installation.
- Close unnecessary applications.
- Connect the computer to reliable power.
- Follow the installation prompts carefully.
When the setup program provides installation choices, select the option that allows you to keep personal files and apps, if that option is available and appropriate for your installation.
Do not choose a clean installation unless you intentionally want to remove the existing Windows installation and applications.
An in-place repair can replace damaged Windows components while preserving the existing environment, but you should still have a backup before starting.
Method 8: Check the System After Repairing Corrupted Files
After completing the repair process, restart Windows and test the features that were previously malfunctioning.
Check whether:
- Windows starts normally.
- Applications launch without errors.
- Settings pages open correctly.
- Windows features respond normally.
- Error messages have disappeared.
- System performance has improved.
- Previously damaged functions are working again.
You can also run SFC one more time:
sfc /scannow
If the scan reports that no integrity violations were found, Windows may no longer have the system-file corruption that triggered the original problem.
If corruption continues to return, investigate the underlying cause rather than repeatedly running repair commands. Problems with storage, failed updates, incompatible software, malware, or other system issues can sometimes cause files to become damaged again.
Conclusion
Windows 11 provides several built-in options for repairing corrupted system files. SFC is usually the best starting point because it checks protected Windows files and can replace damaged versions. When SFC cannot repair everything, DISM can repair the Windows component store before you run SFC again.
For computers experiencing startup or stability problems, Safe Mode can provide a cleaner environment for running repairs. Windows Update and System Restore can also help when corruption is connected to an update or recent system change.
For serious corruption that cannot be repaired with these tools, an in-place Windows installation can provide a more comprehensive repair while potentially preserving applications and personal files.
Always back up important data before performing major system repairs. If corrupted files repeatedly return after successful repairs, look for the underlying hardware, software, or Windows configuration problem instead of treating the symptoms repeatedly.
FAQs
1. What is the best command to repair corrupted system files in Windows 11?
Start with:
sfc /scannow
If SFC cannot repair some files, run:
DISM /Online /Cleanup-Image /RestoreHealth
Then run sfc /scannow again.
2. Should I run DISM or SFC first?
For a straightforward system-file problem, you can start with SFC. If SFC reports that it cannot repair some files, run DISM and then run SFC again.
3. Can SFC repair all corrupted Windows files?
No. SFC can repair many protected system-file problems, but it may not be able to repair every type of corruption. Problems with the Windows component store may require DISM or a more comprehensive Windows repair.
4. Will repairing Windows system files delete my personal files?
Running SFC or DISM does not normally delete your personal files. However, more advanced recovery or installation procedures can have different effects, so always back up important files before performing major repairs.
Quick Summary
- Run
sfc /scannowto check and repair protected Windows system files. - Use DISM when SFC cannot repair corrupted files.
- Safe Mode and System Restore can help with more difficult system problems.
- Back up important data before performing major Windows repairs.





