Tuesday, August 7, 2012

Sfc (System File Checker)

ok There are times when things get horribly weird with windows. you have a broken or missing DLL handful of other issues can come to mind.

End result you need to replace a DLL with a good version.

Do not download one, save your self the hack of grabbing of the install media. use sfc and it can do all of that in one go.

Tim Fisher posted this on pcsupport.about.com and i really dont need to retype it all. so take a look and enjoy!

http://pcsupport.about.com/od/termss/p/sfc-command-system-file-checker.htm

Here is an excerpt of the text just inc case the link breaks.



Sfc (System File Checker)
By Tim Fisher, About.com Guide


What is the Sfc Command?:

The sfc command is a Command Prompt command that can be used to verify and replace important Windows system files.

System File Checker is a very useful tool to use when you suspect issues with protected Windows files like many DLL files.

Sfc Command Syntax:

sfc [/scannow] [/verifyonly] [/scanfile=file] [/verifyfile=file] [/offwindir=win] [/offbootdir=boot] [/?]

Tip: See How To Read Command Syntax if you're not sure how to interpret the sfc command syntax above.

/scannow = This option instructs sfc to scan all protected operating system files and repair as necessary.

/verifyonly = This sfc command option is the same as /scannow but without repairing.

/scanfile=file = This sfc option is the same as /scannow but the scan and repair is only for the specified file.

/offwindir=win = Used with other sfc options to define the Windows directory (win) when using sfc offline.

/offbootdir=boot = Similar to /offwindir, this sfc option is used to define the boot directory (boot).

[/?] = Use the help switch with the sfc command to show detailed help about the command's several options.

Tip: You can save the output of the sfc command to a file using a redirection operator. See How To Redirect Command Output to a File for instructions or check out Command Prompt Tricks for more tips like this.

Sfc Command Examples:

sfc /scannow
In the above example, the System File Checker utility is used to scan and then automatically replace any corrupt or missing system files. The /scannow option is the most commonly used switch for the sfc command.

See How To Use SFC /Scannow to Repair Protected Windows Operating System Files for more information on using the sfc command in this way.

sfc /scanfile=c:\windows\system32\ieframe.dll
Here, the sfc command is used to scan ieframe.dll and then repair it if an issue is found.

sfc /verifyonly
Using the sfc command with the /verifyonly option, System File Checker will scan all protected files and report any issues but no changes are made.

Important: You may need access to your original Windows DVD or CD to allow file repairs.

Sfc Command Availability:

The sfc command is available from within the Command Prompt in most Windows operating systems including Windows 8, Windows 7, Windows Vista, Windows XP, and Windows 2000.

System File Checker is part of Windows Resource Protection in Windows 8, Windows 7, and Windows Vista and is sometimes referred to as Windows Resource Checker in those operating systems.

System File Checker is part of Windows File Protection in Windows XP and Windows 2000.

Important: The sfc command can only be run from the Command Prompt when opened as an administrator. See How To Open an Elevated Command Prompt for information on doing that.

Note: The availability of sfc command switches may differ somewhat from operating system to operating system.

Sfc Related Commands:

The sfc command is often used with many other Command Prompt commands.

Many troubleshooting steps advise the use of the sfc command.

1 comment: