Microsoft Windows 2000
Server Administrator's Companion

by Sharon Crawford & Charlie Russel
copyright (c) 2000 by Microsoft Corporation
all rights reserved


Home
Articles
Utilities
Software

Electronic Book

Restore Registered System Files

If an NT disk isn't available during software installation you can skip the system file integrity dialog that pops up when the install alters those special files. You can restore these files at a later time using the Windows File Checker. To see the syntax for the program, open a command window and type:

c:\>sfc /?

This command scans all protected system files and replaces incorrect versions with correct Microsoft versions.

The following are the command parameters:

sfc [/scannow] [/scanonce] [/scanboot] [/cancel] [/enable] [/purgecache] [/cachesize=x] [/quiet]

/scannow

Scans all protected system files immediately.
/scanonce Scans all protected system files once at the next boot.
/scanboot Scans all protected system files at every boot.
/cancel Cancels all pending scans of protected system files.
/quiet Replaces all incorrect file versions without prompting the user.
/enable Enables Windows File Protection for normal operation.
/purgecache Purges the file cache and scans all protected system files immediately.
/cachesize=x Sets the file cache size.