What is the System File Checker (SFC) command on a Windows 2000/XP/2003 computer?
Bitdefender Security Solutions:
- #1 ranked antimalware
- Cloud hosted, cloud managed
- Instant deployment, no IT overhead
- Protects laptops, desktops & servers
The System File Checker tool gives an administrator the ability to scan all of the protected files to verify their versions. The System File Checker tool also checks and repopulates the %SystemRoot%\System32\Dllcache folder. If the Dllcache folder becomes damaged or unusable, you can use either the sfc /scanonce or sfc /scanboot command to repair the contents of the folder.
You must be logged on as an administrator or as a member of the Administrators group to run System File Checker.
System File Checker Tool Syntax
Open a command prompt and type SFC followed by one or more of the following switches:
For all W2K, XP and Windows Server 2003 systems:
The /scannow command scans all protected system files and replaces incorrect versions with correct Microsoft versions. This command also repopulates the DLLCache folder with the most recent versions of protected files. This requires access to the Windows installation source files and also the installed Service Pack files. You are usually prompted for the location of these files during the scan operation.
The /scanonce command scans all protected system files once. This command requires access to the Windows installation source files.
The /scanboot command scans all protected system files every time that you start your computer. This command requires access to the Windows installation source files.
The /cancel command cancels all pending scans of protected system files.
The /purgecache command purges the file cache and scans all of the protected system files immediately. This command requires access to the Windows installation source files. This command is required after you run the /cachesize=x command.
The /cachesize=x command sets the file cache size in megabytes (MB). This command requires a reboot followed by a /purgecache command to adjust the size of the on-disk cache.
This command sets the SfcQuota DWORD value to x in the following registry key:
The /quiet command replaces all incorrect file versions without prompting the user.
For XP and Windows 20003 systems only:
The /revert command returns scan to the default setting (do not scan protected files when you start the computer).The default cache size is not reset when you run this command. This command is equivalent to the /Enable switch in Windows 2000.