
close
close
What is the System File Checker (SFC) command on a Windows 2000/XP/2003 computer?
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.
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.
advertisment
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.
This command sets the SfcQuota DWORD value to x in the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
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.
Description of the Windows 2000 System File Checker (Sfc.exe) – 222471
Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe) – 310747
Description of the Windows File Protection Feature – 222193
More from Daniel Petri
advertisment
Petri Newsletters
Whether it’s Security or Cloud Computing, we have the know-how for you. Sign up for our newsletters here.
advertisment
More in Security
Build 2022: Microsoft Boosts Data Analytics and Cybersecurity in New Training & Certifications
May 24, 2022 | Rabia Noureen
Microsoft Defender for Office 365 to Get Preset Security Policy Improvements In June
May 23, 2022 | Rabia Noureen
CISA Warns Federal Agencies to Mitigate Critical VMware Vulnerabilities by May 23
May 20, 2022 | Rabia Noureen
CISA Warns Windows Admins Against Applying May Patch Tuesday Updates on Domain Controllers
May 17, 2022 | Rabia Noureen
Most popular on petri
Log in to save content to your profile.
Article saved!
Access saved content from your profile page. View Saved
Join The Conversation
Create a free account today to participate in forum conversations, comment on posts and more.
Copyright ©2019 BWW Media Group