System File Checker (SFC.exe) is an Easy-to-use command prompt utility that checks for corrupted System files and replace them with good copy of the file. This Windows in-built tool is pretty good to run when there is any suspect on system files damage, or if you just think there’s something wrong with your system.
How to Run System File Checker Tool?
- Open Command Prompt (Run as administrator)
- At Command Prompt window, type the command “sfc /scannow” to 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 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 below steps…
“The good copy of the system file can be obtained from another computer that is running the same version of Windows with 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.”
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 this 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.
More Info on Windows Resource Protection:
Take for instance, 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 much easy to modify or to remove system files that are actively being used by Windows. But when your computer is infected by virus, there are changes of file corruption as these viruses can changes 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.
That is where System File Checker comes into 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.