SFC.exe is a pre-installed tool in Windows-based systems used to repair corrupted system files. You can use this tool when you feel that your Windows operating system is not working smoothly and showing random errors. Mainly this tool checks the integrity of core windows files and if it founds any bugs then it replaces the corrupted files with a new one.
SFC.exe or System File Checker tool is a command-based utility, which means it can be used with the elevated command prompt. There are several command options available that are used with SFC.exe to find and repair the corrupted windows files. In this article, we will test all these commands and know the best way to repair Corrupted Windows Files.
Syntax
sfc /option = file path
Example:
sfc /scannow
sfc /scanfile = c:\windows\system32\xxx.dll
SFC Command Options
sfc /scannow
sfc /verifyonly
sfc /scanfile=C:\windows\system32\kernel32.dll
sfc /verifyfile=C:\windows\system32\kernel32.dll
sfc /SCANFILE=d:\windows\system32\kernel32.dll /OFFBOOTDIR=d:\ /OFFWINDIR=d:\windows
sfc /SCANFILE=d:\windows\system32\kernel32.dll /OFFBOOTDIR=d:\ /OFFWINDIR=d:\windows /OFFLOGFILE=c:\log.txt
sfc /?
What if SFC.exe fails to repair Windows Files?
Most of the time in the situation of critical windows damage on your PC, you might see that SFC couldn’t fix your problem. In this situation, you need to have a more powerful tool installed on your PC that could fix all Windows-related problems easily. So, it is advised to use Advanced System Repair Tool as a great alternative to the SFC.exe tool.
Summary:
In this article, I tried to explain all the command options with sfc.exe. The tool sfc.exe becomes more powerful with its various command options. If you know all those commands, you can save time and efficiently repairs the corrupted windows files.