Friday, December 9, 2022

Repair Windows System Files With SFC /Scannow Command

SFC or System File Checker is a tool that checks for corrupted and missing system files on Windows and fixes them. This handy command is used for troubleshooting errors potentially occurring from corrupted or missing system files.

Here I have discussed the sfc /scannow command in detail, on how to use it, where it is useful and how to perform advanced troubleshooting with it.

How To Repair System Files In Windows 10 With SFC /Scannow?

For running the SFC scan, you need to open Command Prompt with administrative privilege and then run the command on it. Here is how you can do it from inside Windows:

  • Press the Windows + R keys to open the Run command.
  • Type cmd and press Ctrl + Shift + Enter to open an elevated Command Prompt, or in other words, Command Prompt as administrator.


  • Now, type the following command and press Enter to initiate it:
sfc /scannow


  • Windows will now take some time to check all the system files and repair them. This can take around 20 minutes.

After the process is complete you will get one of the following four messages. Here are the messages you can get, what they mean, and what you may need to do based on them:

1) Windows Resource Protection did not find any integrity violations:-

This message means that there are no corrupted or missing system files in your Windows.

2) Windows Resource Protection could not perform the requested operation:-

This means that Windows was unable to run System File Checker for some reason. If this happens, run the SFC scan in Safe Mode. Also, open %WinDir%\WinSxS\Temp in the Run command and check if the folders PendingDeletes and PendingRenames exist there.

3) Windows Resource Protection found corrupt files and successfully repaired them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log:-

This means that the SFC scan found the corrupted files and successfully repaired them. Also, the details of which files were repaired are given in a log. You can open this log by running the following command on an elevated Command Prompt and then open the Sfcdetails.txt file from your desktop, which will contain all the :

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

4) Windows Resource Protection found corrupt files but was unable to fix some of them. Details are included in the CBS.Log %WinDir%\Logs\CBS\CBS.log:-

This message means that the SFC tool was able to find the corrupt files but was unable to repair them. The information is given in the log, which you can check using the command mentioned above. In this situation, you will have to manually replace the corrupted file with a healthy one.

How To Run Sfc /Scannow When Windows Doesn’t Boot Into Desktop?

On Windows, you may face an error or bug that prevents you from booting into the desktop. In this scenario, you will have to open Command Prompt from the Recovery options or Advanced Startup options.

You can access them by failing to boot 3 consecutive times (restarting 3 times using restart buttons) or you can use a bootable Windows media and enter the Repair computer screen. Once you have opened the Advanced Startup options, navigate to Troubleshoot >> Advanced Options >> Command Prompt.


Once you have opened Command Prompt, run sfc /scannow and press Enter as you did earlier to run the SFC scan.

Wrapping Up

So, there you have it. This is how you can run the sfc /scannow command on Windows 10 and repair system files. If you have any queries related to this topic, ask us in the comment section. Also, join our Facebook group for direct help from us with your tech issues.

Sanmay Chakrabarti
Sanmay Chakrabarti
Sanmay is a Windows Insider and editor at BottoBotto. He is a Tech enthusiast and has been writing tech blogs for over 2 years now. He loves reading books, traveling to new places and listening to music in his free time.


    • Screenshot the error and share it on the Facebook group we have given in the conclusion. This way we will be able to help you directly.


Please enter your comment!
Please enter your name here

Must Read