microsoft toolkit download

Windows SFC (System File Checker) Tutorial

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 or 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 cmd or ms-dos or 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 %WinDir%\System32\dllcache .

sfc /scannow

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.

sfc /verifyonly

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 /scanfile=test.dll

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.

Leave a Comment