How to Use SFC Scannow to Repair Corrupted Windows Files

Windows SFC scannow repair illustration

System File Checker is a built-in Windows repair tool that scans protected system files and replaces damaged or missing ones with known-good copies. It is a sensible early repair step when Windows acts strangely and the cause is not obvious.

This guide applies to Windows 10 and Windows 11. The sfc command is included with Windows.

Does This Affect You?

Run sfc /scannow when Windows features stop working, apps crash unexpectedly, system errors appear, or troubleshooting points toward corrupted system files. It does not reinstall Windows or remove your personal files.

Run sfc /scannow

The scan commonly takes 10 to 20 minutes. Let it finish before closing the window.

  1. Click Start, type cmd, right-click Command Prompt, and choose Run as administrator.
  2. Run sfc /scannow.
  3. Wait until the scan reaches 100 percent. Do not restart or close Command Prompt while it is running.
  4. Read the final Windows Resource Protection message. It may say no integrity violations were found, corrupt files were found and repaired, or corrupt files were found but some could not be repaired.
  5. Restart the PC after the scan, especially if repairs were made.

Run DISM First if SFC Cannot Repair Everything

SFC uses the Windows component store as its repair source. DISM can repair that underlying Windows image so SFC has good files to use.

  1. Open Command Prompt as administrator again.
  2. Run DISM /Online /Cleanup-Image /RestoreHealth.
  3. Keep the PC connected to the internet. DISM may use Windows Update to download replacement files.
  4. Wait for DISM to complete successfully. It can take 15 to 30 minutes or longer on some PCs.
  5. Run sfc /scannow again, then restart.

Extra SFC and DISM Notes

Export the SFC Repair Details

To create a desktop log of SFC entries, open Command Prompt as administrator and run findstr /c:"[SR]" %windir%LogsCBSCBS.log >"%userprofile%Desktopsfcdetails.txt". The file can help identify what SFC repaired or could not repair.

Use an ISO as a DISM Source

If DISM cannot download repair files, mount a Windows installation ISO and point DISM at it with a source path such as DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:X:sourcesinstall.wim:1 /LimitAccess, replacing X: with the mounted ISO drive letter.

Recurring Corruption May Be Storage Related

If SFC repairs files repeatedly and the same problems return, check drive health. In PowerShell as administrator, Get-PhysicalDisk | Select-Object DeviceId, HealthStatus should report Healthy for each drive. Back up important files immediately if a drive reports trouble.

When Repairs Still Fail

If SFC and DISM cannot stabilize Windows, a reset or repair installation may be needed because the entire system image may be too damaged for individual file repairs.

Sources

  • Microsoft Support: Use System File Checker to repair missing or corrupted system files
  • Microsoft Learn: Repair a Windows image
  • Microsoft Support: Fix Windows Update errors
Disclosure: This post may contain affiliate links which means I may receive a commission for purchases made through links. I will only recommend products that I have personally used! Learn more on my Private Policy page.
A thoughtful woman reads a newspaper while enjoying coffee at an indoor workspace.

DEALWEEK

SUBSCRIBE AND GET 20% OFF YOUR NEXT ORDER! OFFER ENDS SOON - DON’T MISS OUT!

We don’t spam! Read our privacy policy for more info.

Shopping Cart