how to repair corrupted system files in Windows

Windows system files can become corrupted after an interrupted update, unexpected shutdown, software or driver changes, or other system problems. If you notice apps crashing, Windows features not working properly, unexpected restarts, or general system instability, there may be corrupt system files that need repair. Windows 11 and Windows 10 include built-in repair tools that can check for damaged system files and replace them with healthy copies. System File Checker (SFC) is the main tool for checking protected system files, while DISM can repair the Windows component store when SFC cannot complete a repair. Let’s look at what corrupted system files mean and how to repair them using built-in Windows tools.

What Are Corrupted System Files?

System files are the core files that Windows 10 and Windows 11 use to start, run, and provide all built‑in features. They include important components such as DLLs, drivers, services, and configuration files stored in folders like C:\Windows and C:\Windows\System32.

A system file is considered “corrupted” when its contents change, get damaged, or go missing, so Windows can no longer read or use it correctly. Corruption can also mean the file is still there, but its data is incorrect or incomplete.

File corruption occurs when the contents or structure of a file become damaged or altered.

What Causes System File Corruption?

System files can become corrupted for several reasons. The most common causes include:

  • Interrupted Windows updates: Turning off the PC or losing power during an update can leave system files incomplete or damaged.
  • Unexpected shutdowns: A sudden power loss or forced shutdown can interrupt Windows processes that are writing system data.
  • Driver or software changes: A faulty driver, incompatible software, or an unsuccessful installation can affect Windows system files or components.
  • Disk problems: File-system errors or storage drive issues can damage or make files inaccessible.
  • Malware: Some types of malware can modify or damage Windows files.
  • Repeated system crashes: Frequent crashes or improper shutdowns can increase the risk of file corruption over time.

Windows includes built-in tools such as SFC and DISM that can detect and repair many types of system file corruption without requiring third-party repair software or reinstalling Windows.

Run System File Checker (SFC)

System File Checker (SFC) is the first Windows repair tool you should try when you suspect corrupted system files. It scans protected Windows system files and replaces corrupted files with a cached copy when a suitable repair file is available.

To run an SFC scan:

  • Press Windows + S and search for Command Prompt.
  • Right-click Command Prompt and select Run as administrator.
  • Enter the following command and press Enter:
sfc /scannow
SFC scan windows 11

This command scans for corrupted DLL (Dynamic Link Libraries) and other vital system files on your computer. It also replaces corrupt files with working ones if it detects corruption.

  • Wait for the scan to reach 100%. The scan may take some time.
  • Restart your computer after the scan finishes.

The scan can take several minutes depending on the level of file corruption. Do not close the Command Prompt window while SFC is running.

What If SFC Finds Corrupted Files?

SFC may report that it found corrupted files and repaired them successfully. In that case, restart Windows and check whether the problem has been resolved.

If SFC reports corrupted files but can’t repair some of them, the Windows component store may also be damaged. In that case, run DISM /RestoreHealth, then run SFC again.

If SFC reports no integrity violations, corrupted system files may not be the cause. You may need to investigate other causes such as drivers, Windows Update problems, applications, or hardware.

2. Use DISM to Repair the Windows Component Store

If SFC cannot repair some corrupted files, use Deployment Image Servicing and Management (DISM) to check and repair the Windows component store. SFC relies on this component store to repair protected system files, so corruption there can prevent SFC from completing its repairs.

DISM also scans the recovery and boot sectors for corruption and can restore file resiliency if it detects any corruption.

Open Command Prompt as administrator and run:

DISM /Online /Cleanup-Image /RestoreHealth

DISM analyzes the system image, checks for issues or corruption, and attempts to restore corrupted files using Windows Update as a source.

DISM restore health command

Wait for the command to complete. Depending on your system’s condition, the process may take several minutes.

After DISM finishes, run SFC again:

sfc /scannow

Restart your PC after the SFC scan completes and check whether the Windows problem is fixed.

DISM repairs the Windows component store, while SFC checks protected system files. Running DISM first gives SFC the healthy repair files it needs to replace corrupted system files.

Recommended repair order: DISM → SFC → Restart → Check the problem

4. Check the Drive for Errors

If system files keep becoming corrupted after running SFC and DISM, the problem may not be with Windows itself. File-system errors or storage drive problems can also damage or make files inaccessible.

Windows includes the CHKDSK tool to check a drive for file-system errors and fix certain problems.

To check your system drive:

  1. Open Command Prompt as administrator.
  2. Run the following command:
chkdsk C: /scan
  1. Wait for the scan to complete.

The /scan option checks the drive for file-system errors while Windows is running. If it finds errors that require a repair, you may need to run CHKDSK with the repair option.

If you are specifically troubleshooting persistent disk errors, you can run:

chkdsk c: /f /r
Check Disk Errors

Windows may tell you that the drive is currently in use and ask whether you want to schedule the check for the next restart. Type Y, press Enter, and restart your PC.

The scan and repair may take some time to complete depending on the size and condition of the drive, let it finish and restart your PC.

Repair Disk drive errors

After CHKDSK finishes, boot back into Windows and check whether the system file corruption or related problem has been resolved.

4. Install Pending Windows Updates

Microsoft regularly releases Windows updates with bug fixes, security patches, and updated system files. Installing the latest updates ensures you have the latest fixes, which may replace corrupted system files and improve system stability.

Go to: Settings → Windows Update

Select Check for updates and install any available updates. Restart the PC if Windows prompts you to.

Check for Windows 11 update

After updating, test the feature or application that was causing the problem.

If Windows Update fails for the same reason, don’t keep retrying. Complete the SFC and DISM repairs above first, then try updating Windows again.

5. Use System Restore If the Problem Started Recently

If corrupted system files or Windows problems appeared after installing a driver, application, update, or making another system change, System Restore may help return Windows to an earlier working state.

System Restore uses restore points to roll back system files, drivers, registry settings, and installed programs to an earlier state. It does not normally remove your personal files such as documents, pictures, or other personal data.

To check for available restore points:

Settings → System → About → System protection

If System Protection is enabled and a suitable restore point is available, select System Restore and follow the on-screen instructions.

Perform system restore

Use this option when the problem clearly started after a recent system change and SFC or DISM did not resolve it.

6. Run Startup Repair if Windows won’t boot

If corrupted or damaged system files are preventing Windows from starting correctly, Startup Repair can automatically diagnose and fix certain startup problems. This tool is most useful when Windows gets stuck during startup, repeatedly restarts, shows a recovery screen, or fails to boot normally.

To run Startup Repair:

  • Open Settings and go to System > Recovery.
  • Next to Advanced startup, select Restart now.
Advanced startup, select Restart now
  • Windows will restart and open the recovery environment.
  • Select Troubleshoot > Advanced options > Startup Repair.
Advanced options
  • If prompted, choose your Windows account and enter your password.
  • Let Windows diagnose and attempt to repair the startup problem.

After the repair finishes, Windows will restart. Check whether the PC now starts normally.

Note: Startup Repair is designed specifically for problems that prevent Windows from starting correctly. If Windows starts normally but you are dealing with app crashes or other system problems, the SFC and DISM methods above are more appropriate.

7. Reset Windows as a last resort

If SFC, DISM, CHKDSK, System Restore, and Startup Repair cannot resolve the problem, Windows may have deeper system corruption. In this situation, Reset this PC can reinstall Windows and give you a fresh system without requiring a traditional clean installation.

Before resetting Windows, back up important files and make sure you have access to any accounts, licenses, or applications you may need to set up again.

To reset Windows 11:

  • Open Settings > System > Recovery.
  • Select Reset PC next to Reset this PC.
  • Choose Keep my files if you want to keep your personal files.
Reset This PC windows 11
  • Choose Cloud download or Local reinstall.
  • Review the reset options and select Reset.

Windows will reinstall the operating system and restart the PC several times.

Choose Keep my files if your main goal is to repair Windows while keeping your personal files. However, it will remove apps and some settings, so make sure you understand what will be affected before starting the reset.

Tip: Treat a Windows reset as a last resort. If SFC and DISM repair the system files, you usually don’t need to reset Windows.

What to Do If System File Corruption Keeps Coming Back

If Windows system files become corrupted again after you repair them, you may need to address an underlying problem. Repeated corruption can be caused by disk errors, interrupted updates, problematic drivers, third-party software, or hardware issues.

Try these checks:

  • Install pending Windows updates, then restart the PC normally after they finish.
  • Check the drive for errors using CHKDSK.
  • Update or remove recently installed drivers or software if the problem started after a change.
  • If you continue to experience file corruption, crashes, or unexpected errors, check the drive’s health.
  • Avoid forced shutdowns, and let Windows updates complete before turning off the PC.

If SFC and DISM repeatedly report corrupted files and the problem continues even after these checks, consider using System Restore, Reset this PC, or other Windows recovery options.

Frequently Asked Questions

How do I repair corrupted system files in Windows 11 or 10?

Start by running sfc /scannow in an elevated Command Prompt. If SFC cannot repair some files, run DISM /Online /Cleanup-Image /RestoreHealth and then run SFC again.

Can SFC repair all corrupted Windows files?

No. SFC can repair protected system files when suitable repair files are available. If the Windows component store is damaged, you may need to run DISM first.

Should I run DISM or SFC first?

For a basic system-file check, SFC is a good starting point. If SFC reports that it cannot repair some files, run DISM and then run SFC again.

Does repairing corrupted system files delete personal files?

No. SFC and DISM are designed to repair Windows components and system files without deleting your personal files, applications, or documents.

What should I do if SFC and DISM cannot fix Windows?

If the problem continues after repairing Windows components, check the storage drive for file-system errors, try System Restore if the issue started recently, or consider a Windows repair install.

Steve Ballmer
With over 7 years of experience in the IT industry, I have experience in IT support, helpdesk, sysadmin, network admin, and cloud computing. Certified in Microsoft Technologies (MCTS and MCSA) and also Cisco Certified Professional in Routing and Switching.