System File Checker Tool

What is an SFC command?

System File Checker (SFC.exe) is an Easy-to-use command prompt utility that checks for corrupted System files and replaces them with a good copy of the file. This Windows in-built tool is pretty good to run when there is any suspicion of system file damage or if you just think there’s something wrong with your system.

If you are curious to know what more can Command Prompt do, Then refer to this exhaustive article on what is Command Prompt, where we have explained in depth about the command line utility and its uses. 

System File Checker Tool

How to Run System File Checker Tool?

  • Open Command Prompt (Run as administrator)
  • At Command Prompt window, type the commandsfc /scannowto scan the system and then press Enter


The scanned results will be displayed once the process is 100% complete. So we recommend you not to close the Command Prompt window in between the process.

  • When the scan is complete, you may end up with one of these messages

#Message 1: Windows Resource Protection did not find any integrity violations.

This is actually a good thing, which means there are no corrupt or missing files present on your system.

#Message 2: Windows Resource Protection could not perform the requested operation.

You can resolve the above problem by running SFC scan in safe mode.

#Message 3: Windows Resource Protection found corrupt files and successfully repaired them.

Again a good thing! The detailed info about the system file scan and its repairing will be included in CBS.Log %WinDir%\Logs\CBS\CBS.log. The CBS details can be viewed only if you copy its information to the Sfcdetails.txt file by using the Findstr command. To do this, type the following command line at the command prompt window

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

Now open the Sfcdetails.txt from your desktop to view the details. Note that this file also includes information about files that were not repaired by the System File Checker tool.

#Message 4: Windows Resource Protection found corrupt files but was unable to fix some of them.

When this happens, you need to manually replace corrupted files.  To do this, follow the below steps…

The good copy of the system file can be obtained from another computer that is running the same version of Windows as your computer. You can perform a System File Checker process on that computer to make sure the system file that you intend to copy is damage free.”

How to Replace Corrupt Files after System File Checker scan?

Step 1: Type this below command and press Enter

takeown /f Path_And_File_Name

Note: The Path_And_File_Name placeholder indicates the path and the file name of the corrupted file. For instance, type takeown /f C:\windows\system32\jscript.dll.

Step 2: To give administrators full access to the corrupted system file, type the below command and then press Enter

icacls Path_And_File_Name /GRANT ADMINISTRATORS:F

Note: The Path_And_File_Name placeholder represents the path and the file name of the corrupted file. For instance, type icacls C:\windows\system32\jscript.dll /grant administrators:F.

Step 3: Finally, replace the damaged system file with a known good copy of the file. To accomplish this, type the following command, and then press Enter

Copy Source_File Destination

Note: The Source_File placeholder represents the path and file name of the known good copy of the file on your computer, and the Destination placeholder represents the path and file name of the corrupted file. For example, type copy E:\temp\jscript.dll C:\windows\system32\jscript.dll.

Did you know? You can also repair drives with the SFC command be it any external drive or D-drive. Let us know how to do that: 

How to Repair Corrupted Drives with the SFC Command?

To run SFC commands on an external hard drive, perform the following steps:

Step1: Run the following command in an elevated (Administrator) Command Prompt window:

Step 2: Remember to replace 'c:' in the command with the letter of your external drive. Also, replace "c:windows" with the directory where Windows is installed (by default, 'Windows').

However, if the corruption persists and the above methods haven't helped and you're still left with several corrupt files or drives and want to recover the files, you can always use a trusted data recovery tool like Remo Recover.

The tool can recover lost data even after severe hard drive corruptions that result in Raw partitions. Even if a partition has been deleted, lost, or formatted, the software can scavenge every sector of the hard drive to recognize and recover over 300 file types. Furthermore, the tool can recover data from FAT16, FAT32, NTFS, NTFS5, and ExFAT drives on any Windows operating system, including Windows 11.

More Info on Windows Resource Protection:

Take, for instance, if you try to replace one of the protected files or try to delete it, Windows will ask for a confirmation that you really do want to remove it. That’s “Windows File Protection”, now called “Windows Resource Protection”.

In other words, we can say that it is not that easy to modify or remove system files that are actively being used by Windows. But when your computer is infected by a virus, there are chances of file corruption as these viruses can change the file attributes of your entire data including system files as well as non-system files. If a Windows Resource Protection (WRP) file is damaged, then Windows may not behave as expected. For instance, some Windows functions may not work, or Windows may crash.

You can follow the methods mentioned in this article to recover files from Windows

That is where System File Checker comes into the picture that can repair corrupt system files. What if your important video file or any other non-system files gets damaged? Don’t worry, in such cases system file checker may not help you.  But with the help of a third party check out this file repair tool like Remo Repair you can easily fix all your files such as MOV, AVI, Word, PPT, PSD, PST, etc.

Default image
John Harris

With a decade of experience in data recovery, John Harris, Senior Editor at Remo Software, is your go-to specialist. His focus includes partition management, Windows solutions, and data troubleshooting, delivering insightful content that serves both users and search engines.

John's expertise shines through in illuminating blog posts, untangling data loss intricacies across diverse storage platforms. His mastery extends from file systems to SD cards, USBs, and external drives on Mac and Windows.

Recognized by cpomagazine, everythingusb, and more, John Harris is your trusted data recovery guide. You can also find his articles featured on, computertechreviews.

Articles: 571