How to Run an SFC Scan in Windows 10 (and Fix Corrupted Files)

System File Checker (SFC) is a built-in Windows 10 tool that scans protected system files and replaces damaged or missing ones with a correct copy. It’s one of the first things to try when Windows crashes, apps won’t open, features stop working, or you see strange errors after an update or power loss. This guide shows how to run it properly, what the results mean, how to pair it with DISM, and what to do if SFC can’t fix everything.

Note: Windows 10 reached end of support on October 14, 2025. Consumer Extended Security Updates (ESU) now run until October 12, 2027. These steps still work on Windows 10, but upgrading to Windows 11 is the long-term way to keep getting security fixes.

Quick Answer

Search for cmd, right-click Command Prompt, and choose Run as administrator. Type sfc /scannow and press Enter. Wait for Verification 100% complete, read the result, and restart your PC.

Administrator Command Prompt running sfc scannow with the command and the result message about found and repaired corrupt files highlighted
(1) Run sfc /scannow in an administrator Command Prompt; (2) read the result message when verification reaches 100%.

Step 1: Open an Administrator Command Prompt

  1. Click Start and type cmd.
  2. Right-click Command Prompt and choose Run as administrator. Click Yes at the prompt.
  3. The title bar should say Administrator: Command Prompt. SFC won’t run in a normal window.

PowerShell or Windows Terminal (Admin) work too; the commands are the same.

Step 2: Run DISM First (Recommended)

SFC repairs files using a local copy called the component store. If that store is damaged, SFC can’t fix everything. Running DISM first repairs the store from Windows Update:

  1. Type DISM /Online /Cleanup-Image /RestoreHealth and press Enter.
  2. Wait until it reaches 100% and says The restore operation completed successfully. It can pause at 20% or 62% for several minutes; that’s normal.

You need an internet connection for this step. For more detail, see our guide on running DISM (the commands are identical on Windows 10).

Step 3: Run the SFC Scan

  1. Type sfc /scannow and press Enter.
  2. Leave the window open. The scan usually takes 5 to 20 minutes.
  3. When it finishes, read the message and restart your PC.

What SFC Results Mean

Message What it means What to do
Windows Resource Protection did not find any integrity violations. No corrupted system files. Look for other causes (drivers, apps, disk).
Windows Resource Protection found corrupt files and successfully repaired them. Problems fixed. Restart. Run SFC once more to confirm.
Windows Resource Protection found corrupt files but was unable to fix some of them. Some files couldn’t be repaired. Run DISM, restart, and run SFC again; see advanced steps below.
Windows Resource Protection could not perform the requested operation. SFC couldn’t run. Run SFC in Safe Mode or from Windows Recovery.
There is a system repair pending which requires reboot to complete. A pending update blocks the scan. Restart and run SFC again.

Advanced: When SFC Can’t Fix Everything

See which files failed

Run this to copy SFC entries from the log to your desktop:

findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > "%userprofile%\Desktop\sfcdetails.txt"

Open sfcdetails.txt and look for lines with “Cannot repair member file.”

Run SFC in Safe Mode

Programs running in the background can interfere. Restart into Safe Mode (Settings > Update & Security > Recovery > Advanced startup > Troubleshoot > Advanced options > Startup Settings > Restart, then press 4) and run SFC again.

Run SFC offline from Windows Recovery

  1. Go to Advanced startup and choose Troubleshoot > Advanced options > Command Prompt.
  2. Find your Windows drive letter (it may not be C: in recovery): type bcdedit and check the osdevice line, or use dir D:\ to look for the Windows folder.
  3. Run sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows, replacing C with the correct letter.

Check the disk

Bad sectors can corrupt files again. Run chkdsk C: /scan to check the drive, or chkdsk C: /f to fix errors on the next restart.

Last resorts

If corruption persists, try System Restore, an in-place upgrade (run setup from Windows 10 installation media and keep files and apps), or Reset this PC.

Other SFC Options

  • sfc /verifyonly — scans without repairing.
  • sfc /scanfile=C:\Windows\System32\filename.dll — checks and repairs one file.
  • sfc /verifyfile=path — checks one file without repairing.

Related: Fix the Invalid Value for Registry error in Windows 10.

Related: Install drivers in Safe Mode on Windows 10.

Related: How to fix corrupted system files in Windows 10.

Related: Register a DLL in Windows 10.

Frequently Asked Questions

Is it safe to run SFC?

Yes. It only replaces protected Windows files with correct versions and doesn’t touch your personal files.

Can I use my PC during the scan?

You can, but it’s best to avoid heavy work and don’t close the window until it finishes.

How often should I run SFC?

Only when you notice problems. There’s no benefit to running it on a schedule.

Summary

  1. Open Command Prompt as administrator.
  2. Run DISM /Online /Cleanup-Image /RestoreHealth.
  3. Run sfc /scannow and restart.
  4. If files can’t be repaired, check the CBS log, try Safe Mode or offline SFC, and check the disk.