Description of the Windows 2000 System File Checker (Sfc.exe)

This article was previously published under Q222471
For a Microsoft Windows XP and Windows Server 2003 version of this article, see 310747
Notice
This article applies to Windows 2000. Support for Windows 2000 ends on July 13, 2010. The Windows 2000 End-of-Support Solution Center is a starting point for planning your migration strategy from Windows 2000. For more information see the Microsoft Support Lifecycle Policy.
This article has been archived. It is offered "as is" and will no longer be updated.
SUMMARY
This article describes the System File Checker tool (Sfc.exe) that is used with the Windows File Protection (WFP) feature.
MORE INFORMATION
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.

System File Checker Tool Syntax

  • 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 /enable command enables WFP for normal operation.
  • 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.
  • The /quiet command replaces all incorrect file versions without prompting the user.
For additional information about the WFP feature, click the article number below to view the article in the Microsoft Knowledge Base:
222193 Description of the Windows 2000 Windows File Protection Feature
compatguidechange wfp sfp switches
คุณสมบัติ

รหัสบทความ: 222471 - การตรวจสอบครั้งสุดท้าย: 12/05/2015 13:25:25 - ฉบับแก้ไข: 4.4

  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows 2000 Server
  • kbnosurvey kbarchive kbinfo KB222471
คำติชม