What System File Checker does and when to use it

System File Checker (SFC) is a Windows tool that scans your computer for corrupted system files and repairs them automatically. When Windows files get damaged — from incomplete updates, malware, or sudden shutdowns — your system can become unstable, crash unexpectedly, or refuse to start. Running SFC can fix these problems without reinstalling Windows.

You should run SFC if your computer is freezing, showing blue-screen errors, or behaving erratically. You do not need to run it as routine maintenance; it is a troubleshooting step when something is actually wrong. SFC works only on system files that came with Windows, not on programs you installed yourself.

Key Takeaways

  • System File Checker runs from Command Prompt with administrator rights, and the full scan takes 15 to 60 minutes depending on your disk speed.
  • The command you type is sfc /scannow, and Windows will tell you immediately if it found problems and whether it could repair them.
  • If SFC finds corrupted files but cannot repair them, you will need to run the DISM tool first to restore Windows system images before trying SFC again.
  • You must restart your computer before running SFC, and you cannot use your computer normally while the scan is running.

Opening Command Prompt with administrator rights

SFC only works when you run it as an administrator. On Windows 10 or 11, press the Windows key and type cmd. Right-click on "Command Prompt" (or "Terminal" on Windows 11) and select "Run as administrator." Windows will ask for permission; click "Yes."

If you are on Windows 7 or earlier, the steps are the same: search for Command Prompt, right-click it, and choose "Run as administrator." Do not just click the Command Prompt icon — it will not have the permissions SFC needs.

Running the full system scan

In the Command Prompt window, type exactly this: sfc /scannow and press Enter. Windows will begin scanning immediately. The window will show a progress bar and tell you what percentage is complete.

The scan usually takes 15 to 60 minutes depending on how fast your hard drive is and how many files Windows needs to check. Do not close the Command Prompt window or turn off your computer while it is running. You can minimize the window and use other programs, but do not restart.

When the scan finishes, Command Prompt will display one of three messages. If it says "Windows Resource Protection did not find any integrity violations," your system files are healthy and SFC found nothing to repair. If it says "Windows Resource Protection found corrupt files and successfully repaired them," the problem is fixed — restart your computer and the repairs will take effect.

What to do if SFC cannot repair the files

If the message says "Windows Resource Protection found corrupt files but was unable to fix some of them," you need to run the DISM tool first. DISM restores the Windows system image that SFC uses as a reference. Open Command Prompt as administrator again and type: DISM /Online /Cleanup-Image /RestoreHealth

This scan also takes 20 to 60 minutes. When it finishes, restart your computer, then open Command Prompt as administrator again and run sfc /scannow a second time. Now that DISM has restored the system image, SFC should be able to repair the corrupted files.

If SFC still cannot repair files after running DISM, the corruption is severe enough that Windows itself may need to be repaired or reinstalled. At that point, contact Microsoft Support or a local technician who can assess whether a repair installation or full reinstall is necessary.

Restarting after repairs are complete

Even if the scan message says repairs were successful, restart your computer before you assume the problem is solved. Some repairs do not take effect until Windows boots up fresh. Restart normally — you do not need to do anything special.

After the restart, use your computer normally for a day or two. If the freezing, crashes, or errors you were seeing have stopped, the SFC repair worked. If the same problems return, the issue may not be corrupted system files — it could be a failing hard drive, a hardware problem, or malware that SFC cannot fix.

Running a scan on a computer that will not start

If your computer will not boot into Windows at all, you cannot run SFC the normal way. Instead, restart your computer and immediately press F8 repeatedly (on Windows 7) or hold Shift while clicking "Restart" from the login screen (on Windows 10 or 11). This opens the Advanced Startup menu.

Choose "Repair your computer" or "Troubleshoot," then select "Advanced options" and "Command Prompt." From there, you can run sfc /scannow the same way. Windows will scan and repair files before you try to boot normally.

If your computer still will not start after running SFC in recovery mode, the problem is likely beyond what SFC can fix, and you will need professional help or a Windows reinstall.

Understanding SFC limitations

SFC only repairs Windows system files — the core files that came with your operating system. It cannot fix problems with programs you installed, your personal files, or third-party software. If your web browser keeps crashing or a game will not run, SFC will not solve that.

SFC also cannot remove malware. If your computer is infected, malware removal tools like Windows Defender or Malwarebytes should run first, before you run SFC. Malware can damage system files, so cleaning the infection first makes SFC more likely to succeed.

Frequently Asked Questions

How often should I run System File Checker?

Only run SFC when your computer is having problems — freezing, crashing, or showing errors. Running it as routine maintenance does not prevent problems and is unnecessary. Most people never need to run it.

Can I use my computer while SFC is scanning?

You can minimize Command Prompt and use other programs, but the scan will run slower and may be less thorough. It is best to let the scan run uninterrupted. Do not restart your computer or close the Command Prompt window while it is running.

What if I see "Access Denied" when I try to run the command?

You did not open Command Prompt as administrator. Close the window, search for Command Prompt again, right-click it, and select "Run as administrator." Windows will ask for permission — click "Yes" — and then type the command again.

Will SFC delete my files or programs?

No. SFC only repairs or replaces corrupted Windows system files. It does not touch your personal files, photos, documents, or installed programs. Your data is safe.

What is the difference between SFC and DISM?

DISM restores the Windows system image that SFC uses as a reference. If SFC cannot repair files, it is usually because the system image itself is damaged. Run DISM first to fix the image, then run SFC again to repair the individual files.