Esporta (0) Stampa
Espandi tutto
Arp
At
Cd
Cls
Cmd
Del
Dir
Fc
For
Ftp
If
Ldp
Lpq
Lpr
Md
Mmc
Msg
Nlb
Rcp
Rd
Reg
Rem
Ren
Rsh
Rsm
Rss
Sc
Set
Sfc
Ver
Vol
Espandi Riduci a icona

Sfc

Aggiornamento: luglio 2010

Si applica a: Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 with SP1, Windows Vista

Scans and verifies the integrity of all protected system files and replaces incorrect versions with correct versions.

For examples of how to use this command, see Examples.

Syntax

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

Parameters

 

Parameter Description

/SCANNOW

Scans the integrity of all protected system files and repairs files with problems when possible.

/VERIFYONLY

Scans integrity of all protected system files. No repair operation is performed.

/SCANFILE

Scans integrity of the specified file and repairs the file if problems are detected, when possible.

<file>

Specified full path and filename

/VERIFYFILE

Verifies the integrity of the specified file. No repair operation is performed.

/OFFWINDIR

Specifies the location of the offline windows directory, for offline repair.

/OFFBOOTDIR

Specifies the location of the offline boot directory for offline

Remarks

  • You must be logged on as a member of the Administrators group to run sfc.exe.

  • If sfc discovers that a protected file has been overwritten, it retrieves the correct version of the file from the systemroot\system32\dllcache folder, and then replaces the incorrect file.

  • There are functional differences between sfc on Windows Server® 2003, Windows Server® 2008, and Windows Server® 2008 R2:

Examples

To verify the kernel32.dll file, type:

sfc /VERIFYFILE=c:\windows\system32\kernel32.dll

To setup offline repair of the kernel32.dll file with an offline boot directory set to d: and offline windows directory set to d:\windows, type:

sfc /SCANFILE=d:\windows\system32\kernel32.dll /OFFBOOTDIR=d:\ /OFFWINDI R=d:\windows

Additional references

Il documento è risultato utile?
(1500 caratteri rimanenti)
Grazie per i commenti inviati.

Aggiunte alla community

AGGIUNGI
Microsoft sta conducendo un sondaggio in linea per comprendere l'opinione degli utenti in merito al sito Web di MSDN. Se si sceglie di partecipare, quando si lascia il sito Web di MSDN verrà visualizzato il sondaggio in linea.

Si desidera partecipare?
Mostra:
© 2014 Microsoft