Windows Vista includes a utility that will scan your system for corrupt, changed or missing system files. Running this from the command prompt is much easier than booting off the dvd into repair mode.
To run this utility, you will need to open a command prompt in administrator mode. You can do that by right clicking the Command Prompt in the list, or by using the nifty keyboard shortcut.
Once you have an administrator command prompt open, you can run the utility by using the following syntax:
SFC [/SCANNOW] [/VERIFYONLY] [/SCANFILE=<file>] [/VERIFYFILE=<file>]
[/OFFWINDIR=<offline windows directory> /OFFBOOTDIR=<offline boot directory>]
The most useful command is just to scan immediately, which will scan and attempt to repair any files that are changed or corrupted. You can run that command with this command:
Alternatively, you can just choose to verify a particular file, or you can do a verify only, which will check but not repair anything. Here’s an example:
Note that this utility exists for XP as well, but has different options.
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 01/8/07