Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 23, 2000 12:00 AM

The System File Checker

Windows IT Pro
InstantDoc ID #15706
Rating: (0)

Systems administrators can run the System File Checker (SFC—sfc.exe) utility, which is part of Windows File Protection (WFP), to verify that a system's protected files are valid and to replace problem files. The SFC also reports on files that should be in \winnt\system32\dllcache but aren't. You can run this utility interactively or set it to run at system startup.

Before you use SFC or any other utility, make sure you're running a proper copy of the utility. If you're running a Windows 2000 beta or release candidate (RC) version on your system, I suggest formatting the drive and installing a new copy of Win2K to ensure that you have only one copy of executable files such as sfc.exe.

When you start SFC with the /scannow option, the utility will immediately start a scan and display the WFP status dialog box, which Figure A shows. This dialog displays the system's progress as it scans protected files. You can cancel the process at any time by clicking Cancel on the dialog box. I ran this process on a notebook PC with a 150MHz Pentium processor and 144MB of RAM, and the scan took more than an hour to complete. As the scan progresses, the system repairs files as necessary.

If the scan finds protected files that should be in dllcache but aren't, SFC will prompt you to provide the Win2K CD-ROM, as Figure B shows. If you installed Win2K from a network location that is currently available or the installation CD-ROM is in the drive, you won't see this message because SFC automatically goes to the network location or CD-ROM drive to find the files it needs. When SFC finds the files, it copies them to the dllcache folder, where they will stay in case the system needs a file later.

You can use several options with SFC. The /quiet option causes SFC to perform the scan and replace bad files without user intervention. This option is handy when you need to run SFC in a batch file or from an automated systems management system such as Microsoft Systems Management Server (SMS).

The /scanboot option sets SFC to start at boot time. Each time the system boots, SFC will start and perform the scan. You can use /scanonce to set up SFC to perform only one scan. You can cancel pending scans by using the /cancel option. The /enable option returns WFP to its default operation.

The /cachesize option sets the WFP cache's size. When you run SFC with this option, you specify the size of the cache folder in megabytes. The Microsoft article "Windows File Protection Does Not Reduce Cache Size Automatically" (http://support.microsoft.com/support/ kb/articles/q245/8/21.asp) points out that you can reduce cache size only after you reboot and run SFC's /purgecache option to purge the current cache. The documentation also describes how you can use /scannow, /scanonce, and /scanboot to repair a corrupted or damaged dllcache.

Related Content:

ARTICLE TOOLS

Comments
  • Brian Adler
    11 years ago
    Jul 13, 2001

    Is there any add on or 3rd party software for thoses of us stuck with NT4 machine on our Networks.

    thanks in advance

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.