Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Windows Server 2008 Server Core : Virus and External Intrusion Protection (part 2) - Verifying System Files with the SFC Utility

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
3/26/2011 9:48:37 PM

3. Verifying System Files with the SFC Utility

The System File Scan (SFC) utility can help you keep viruses at bay by ensuring you have the correct version of the system files on your system. Viruses often replace system files with patched versions that contain the virus code. Hitchhiking on an existing system file makes it less likely that someone will remove the virus and ensures the virus gets a chance to run, so virus writers are motivated to use system files whenever they think they can. This utility uses the following syntax:

SFC [/SCANNOW] [/VERIFYONLY] [/SCANFILE=<file>] [/VERIFYFILE=<file>]
[/OFFWINDIR=<offline windows directory>
/OFFBOOTDIR=<offline boot directory>]

NOTE

The syntax of the SFC utility presented in this article is specific to Vista, Windows Server 2008 Full version, and Server Core. The syntax is completely different from older versions of SFC that you find in products such as Windows XP. The older windows products use a command line that looks like this: SFC [/SCANNOW] [/SCANONCE] [/SCANBOOT] [/REVERT] [/PURGECACHE] [/CACHESIZE=x]. If you need this and other older versions of the command line for Windows administrative, get Windows Administration at the Command Line (Sybex, 2007).

The following list describes each of the command line arguments.


/SCANNOW

Scans all of the protected system files immediately and repairs any damage it finds. The utility normally relies on the content of the \WINDOWS\system32\dllcache folder to make repairs to the system files. However, it can also use the Server Core DVD, the content of service pack folders, or even online sources when necessary. In many cases, you'll want to verify the files using the /VERIFYONLY command line switch before you do a repair using this command line switch.


/VERIFYONLY

Verifies all of the protected system files immediately and works much the same as the /SCANNOW option. However, this option doesn't perform any repairs. Even so, it provides you with a report of system file reliability. To use this option, type SFC /VERIFYONLY and press Enter. You'll see the utility work in stages as shown in Figure 1.

Figure 1. Verify that your system files are reliable and repair them only as needed.


/SCANFILE=
File

Scans the specified file and repairs any damage. You must provide the full path to the file.


/VERIFYFILE=
File

Verifies the specified file, but doesn't repair any damage. You must provide the full path to the file.


/OFFBOOTDIR=
Directory

Performs offline repair of the specified boot directory.


/OFFWINDIR=
Directory

Performs offline repair of the specified Windows directory.

Other -----------------
- Windows Server 2008 Server Core : Managing System Users - Discovering User Identity with the WhoAmI Utility
- Exchange Server 2010 : Installing a Windows Certification Authority Server
- Exchange Server 2010 : Understanding Public Key Infrastructure (part 2) - Manual Encrypted Communications Using Outlook
- Exchange Server 2010 : Understanding Public Key Infrastructure (part 1)
- BizTalk 2010 Recipes : Document Mapping - Organizing Maps
- BizTalk 2010 Recipes : Document Mapping - Creating Simple Maps
- BizTalk 2010 Recipes : Creating SOAP Header Schemas
- Windows Server 2008 R2 : Managing Active Directory with Policies (part 5)
- Windows Server 2008 R2 : Managing Active Directory with Policies (part 4) - Deploying Software Packages Using Domain Group Policy Objects
- Windows Server 2008 R2 : Managing Active Directory with Policies (part 3) - Extending Group Policy Functionality
 
 
Top 10
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
 
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server