The System File Checker is responsible and built into the Windows for the purpose of scanning your Windows System Files for the issue of corruption. Meanwhile, it can also look into other errors, and in case a file has been modified, it can automatically replace the file with the correct version in order to assist the user.
However, if the SFC command doesn't work, one can opt for the services of DISM command on Windows 10 or Windows 8 which can help in repairing the underlying Windows system image. However, for the variants that include Windows 7 or earlier, Microsoft offers a downloadable "˜System Update Readiness Tool' instead.
The process has to be carried out from the Administrator Command Prompt window. If you are using Windows 10, you can simply right click on the Start button, select "˜Command Prompt (Admin)', and if you are using a different version of Windows, you can access it by searching the Start Menu for Command Prompt, right-click over it, and select the option of "˜Run as Administrator'.
You then have to type the following command into the Command Prompt Window, and press Enter. This would help you to run a complete system scan: sfc/scannow
You can then leave the command prompt window open until the command completes its execution. This can take a while depending on the condition of the system. If no error is detected by the command, you'll see a message which would say, "Windows Resource Protection did not find any integrity violations".
However, if you see an alternate message which might read, "Windows Resource Protection found corrupt files but was unable to fix some of them", you have to carry out the reboot in safe mode before doing anything else. For the ones who are using Windows 10, accessing the Safe Mode might be tricky as the booting takes place in a very short amount of time, but it can be done by holding the Shift key while clicking the restart option which will allow them to access the advanced boot options menu. For the earlier variants of Windows, one has to hold up the F8 key while the booting takes place. You then have to run the above command in the safe mode.
For the ones using Windows 10, the deployment image and servicing management tool can help you fix the component store corruption that doesn't allow the SFC command from proper execution. Executing this command is not that difficult, and can be done through following the given steps.
If you are worried about corrupted file harming other critical files on your computer, you can simply perform the system restore.
The next important question that arises is when we should use these commands. The foremost area to run this command is while troubleshooting a faulty Windows system. If you are getting the blue-screen error, facing issues with your applications crashing, or are not able to access the features offered by Window, the SFC command could prove to be useful. However, if the SFC command is not able to repair any files, running could help ensure that there are no corrupted system files and the troubleshooting of the system can be continued with other methods.
In usual cases, execution of the DISM command is not necessary. However, if one is unable to get the results through the SFC command, or cannot replace the corrupted file with the correct one, it is only a DISM command that can help. Alongside, System Update Readiness Tool can fix the underlying issue with your Windows system and also ensure that the System File Checker runs properly.
There can be instances when you have accidentally disabled the system restore option. In the following steps, we shall discuss how to enable the system restore option in Windows 10 and help deal with corrupted files.
Starting with SFC, DISM, and eventually System Restore, one can find solution to repair corrupted files which might be present in their device. The corrupted files should be treated as early as possible, else they can cause more harm to your hard disk. However, if your data has been lost due to corrupted files, you can use the Recoverit Data Recovery software to recover corrupted files.