Windows provides different tools in order to check disk, file system, etc. The System File Checker or SFC is used to scan and restore files those do are corrupted in Windows operating systems. The executable
SFC.exe is used as a command in order to scan, check and recover files.
Open Command Prompt As Administrator
When we try to run the
scf.exe command as a normal user the
You must be an administrator running a console session in order to use the sfc utility. error. This simply means that the scf command can be only executed as Administrator user or with Administrative privileges.
The command prompt or MS-DOS can be opened with Administrative privileges by typing
Command Prompt to the Start Menu like below. There click to the
Run as administrator which starts the MS-DOS with Administrative privileges.
Scan System Files
The most popular use case and powerfull feature of the sfc command is the system scan. The system acn scans the system files and checks if there is a corrupted system file like DLL file, OCX file etc. The option
/scannow is used all systems files which are located under
The scan takes some time as it is based on disk IO and processing with CPU. The verification percentage is displayed during the scan. After the scan is complete brief information about the scan is displayed like
Windows Resource Protection found corrupt files and successfully repaired them. .
Verify System Files ( Do Not Recover)
The sfc command can be used to scan but do not recover corrupted system files. This is called as verify system files but do not recover. The
/verifyonly is used verify system files.
Scan Specified System File
By default, the previously described options scan the system files but a specific or specified file can be scanned by using the option
/scanfile= . Also, the file name is provided after the equal sign.
SFC Scan Logs
The scanning and verifyting system files creates a lot of log. These logs are stored unrder th
%WinDir%\Logs\CBS\CBS.log or simply
C:\Windows\Logs\CBS\CBS.log . Log files provides detailed information about the scan.