What System File Checker does and when to run it

System File Checker (SFC) is a Windows tool that scans your computer for corrupted system files and replaces them with working copies. When Windows won't start properly, programs crash without reason, or you see error messages about missing files, SFC can often fix the problem without reinstalling Windows.

You should run SFC when your computer behaves strangely — freezing, restarting on its own, showing blue screens, or refusing to open programs. It is also worth running after a Windows update that went wrong or if malware removed files. SFC does not speed up a slow computer or add storage space; it only repairs damage to the files Windows needs to run.

The scan takes 15 to 60 minutes depending on your drive size and how many files need checking. Your computer will be slow during the scan, so run it when you do not need to use the machine.

Key Takeaways

  • System File Checker must run from Command Prompt with administrator rights, which you open by right-clicking and selecting "Run as administrator".
  • The command to type is sfc /scannow, which checks all system files and repairs broken ones automatically.
  • If SFC finds problems but cannot fix them, Windows will tell you to run the command again or use the Deployment Image Servicing and Management tool (DISM).
  • A successful scan shows "Windows Resource Protection did not find any integrity violations" or "Windows Resource Protection found corrupt files and successfully repaired them".
  • If the scan fails repeatedly, the hard drive itself may be failing and you should back up your data immediately.

Opening Command Prompt with the right permissions

SFC only works when you run it as an administrator. A regular user account cannot access the system files SFC needs to repair. On Windows 10 and 11, click the Start button and type Command Prompt into the search box.

When Command Prompt appears in the results, right-click on it and select Run as administrator. Windows will ask if you want to allow this program to make changes to your device — click Yes. You will know you have the right permissions when the window title bar shows "Administrator: Command Prompt" at the top.

If you cannot find Command Prompt, you can also right-click on the Start button itself and select Terminal (Admin) on Windows 11, or search for PowerShell, right-click it, and choose Run as administrator. All three tools will run the SFC command the same way.

Running the scan and what to expect

In the Command Prompt window, type the following exactly as shown and then press Enter:

sfc /scannow

Windows will begin scanning immediately. You will see a progress bar that fills slowly — this is normal and does not mean the computer is frozen. The scan checks every system file against a backup copy stored on your drive. Do not close the Command Prompt window or restart your computer while the scan is running, even if it seems to be taking a very long time.

When the scan finishes, you will see one of three messages. "Windows Resource Protection did not find any integrity violations" means your system files are healthy and SFC found nothing to repair. "Windows Resource Protection found corrupt files and successfully repaired them" means SFC fixed the problem — restart your computer and the issue should be gone. "Windows Resource Protection found corrupt files but was unable to fix some of them" means SFC needs help from another tool.

What to do if SFC cannot repair the files

If SFC reports that it found corrupt files but could not fix them, you need to run a second tool called DISM (Deployment Image Servicing and Management). Keep the Command Prompt window open and type this command:

DISM /Online /Cleanup-Image /RestoreHealth

This command downloads a fresh copy of the damaged files from Microsoft and replaces the broken ones. The DISM scan takes longer than SFC — often 30 to 45 minutes — and requires an internet connection. Again, do not close the window or restart while it runs.

After DISM finishes, run the SFC command a second time to see if the files are now repaired. Type sfc /scannow again and wait for it to complete. Most of the time, running DISM first and then SFC again solves the problem.

Restarting after a successful repair

If SFC reports that it repaired files, restart your computer to apply the fixes. Close the Command Prompt window and click the Start button, then select Power and Restart. Let Windows shut down and start up completely — do not put it to sleep.

After the restart, test whether the original problem is gone. If your computer was crashing, see if it stays stable. If a program would not open, try opening it again. If you still see the same errors, the problem may not be caused by corrupted system files — it could be a hardware issue, a driver problem, or malware that SFC cannot fix.

If the problem returns after a few days, run SFC again. Repeated corruption of the same files often signals a failing hard drive, which means you should back up your important documents and photos immediately and consider replacing the drive.

When SFC scan fails to start or crashes

If you type the command and nothing happens, or if Command Prompt closes unexpectedly, the most common cause is that you did not open it with administrator rights. Close any Command Prompt window and start over, making sure you right-click and select Run as administrator.

If the scan starts but stops partway through with an error message, your hard drive may have physical damage. Try running the scan one more time, but if it fails again in the same way, do not keep trying — repeated scan attempts on a failing drive can make the damage worse. Back up your files to an external drive or cloud storage and have the hard drive checked by a technician.

On rare occasions, Windows itself is too damaged for SFC to work. If you have already run DISM and SFC multiple times and the computer still will not start or behaves the same way, you may need to repair or reinstall Windows. This is beyond what SFC can do alone.

Frequently Asked Questions

Can I run System File Checker without restarting my computer first?

Yes. SFC works on a running system, but some corrupted files may be in use by Windows, which means SFC cannot replace them while they are open. If SFC reports that it could not fix certain files, restart your computer and run the scan again — this time the files will not be in use and SFC can repair them.

How often should I run System File Checker?

Run SFC only when something is wrong — when your computer crashes, programs fail to open, or Windows shows error messages. Running it regularly as prevention is not necessary and wastes time. If you run it and it finds no problems, you do not need to run it again unless a new issue appears.

Will System File Checker remove viruses or malware?

No. SFC only repairs Windows system files. If malware deleted or damaged those files, SFC will restore them, but it will not remove the malware itself. If you think your computer has malware, run a full scan with Windows Defender or another antivirus program after you run SFC.

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

This means you did not open Command Prompt as administrator. Close the window completely and open it again, this time right-clicking on Command Prompt and selecting Run as administrator. Make sure you click Yes when Windows asks for permission.

Can I use System File Checker on an external drive or USB stick?

No. SFC only works on the Windows installation on your main hard drive. It cannot scan or repair system files on external drives, USB sticks, or SD cards.