System File Integrity Check
The System File Integrity Check (SFC) in Windows is used to validate (and repair) System Files.
Usage
SFC [/SCANNOW] [/VERIFYONLY] [/SCANFILE=<Datei>] [/VERIFYFILE=<Datei>]
[/OFFWINDIR=<Windows-Offlineverzeichnis> /OFFBOOTDIR=<Offlinestartverzeichnis> [/OFFLOGFILE=<Protokolldateipfad>]]
/SCANNOW Überprüft die Integrität aller geschützten Systemdateien und
repariert ggf. problematische Dateien.
/VERIFYONLY Überprüft die Integrität aller geschützten Systemdateien.
Es erfolgt keine Reparatur.
/SCANFILE Überprüft die Integrität der angegebenen Datei und repariert ggf. die Datei, wenn Probleme gefunden werden.
Geben Sie den vollständigen Pfad zur <Datei> an.
/VERIFYFILE Überprüft die Integrität der Datei mit dem vollständigen Pfad zur <Datei>. Es erfolgt
keine Reparatur.
/OFFBOOTDIR Gibt den Speicherort des Offlinestartverzeichnisses für Offlinereparaturen an.
/OFFWINDIR Gibt den Speicherort des Windows-Offlineverzeichnisses für Offlinereparaturen an.
/OFFLOGFILE Durch Angabe eines Protokolldateipfads kann bei Offlinereparaturen optional die Protokollierung aktiviert werden.
Beispiel:
sfc /SCANNOW
sfc /VERIFYFILE=c:\windows\system32\kernel32.dll
sfc /SCANFILE=d:\windows\system32\kernel32.dll /OFFBOOTDIR=d:\ /OFFWINDIR=d:\windows
sfc /SCANFILE=d:\windows\system32\kernel32.dll /OFFBOOTDIR=d:\ /OFFWINDIR=d:\windows /OFFLOGFILE=c:\log.txt
sfc /VERIFYONLY
- Use
sfc /verifyonlyto only Verify Files and not attempt to repair them. This is generally preferred to be the first stop when suspecting damaged/corrupted system files as there is no possibility in harming the system. - use
sfc /scannowto both Verify and attempt Repair. This is a destructive Operation so it is suggested to run this only when knowing that this can very well brick the system. While i had only a few occurences where this happened, but nevertheless.
There are also the Options to write a log File using /OFFLOGFILE. The Options /OFFBOOTDIR and /OFFWINDIR are used when a System repair is wanted but Network is not available. These work as offline sources to repair the Files
No Comments