snippetbashTip
sfc — Scan the integrity of Windows system files. More information: <https://learn.microsoft.com/windows-s
Viewed 0 times
thecommandwindowsintegrityclisfcscansystem
windows
Problem
How to use the
sfc command: Scan the integrity of Windows system files. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/sfc>.Solution
sfc — Scan the integrity of Windows system files. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/sfc>.Display information about the usage of the command:
sfcScan all system files and, if possible, repair any problems:
sfc /scannowScan all system files without attempting to repair any:
sfc /verifyonlyScan a specific file and, if possible, repair any problems:
sfc /scanfile={{path\to\file}}Scan a specific file without attempting to repair it:
sfc /verifyfile={{path\to\file}}When repairing offline, specify the boot directory:
sfc /offbootdir={{path\to\directory}}When repairing offline, specify the Windows directory:
sfc /offwindir={{path\to\directory}}Code Snippets
Display information about the usage of the command
sfcScan all system files and, if possible, repair any problems
sfc /scannowScan all system files without attempting to repair any
sfc /verifyonlyScan a specific file and, if possible, repair any problems
sfc /scanfile={{path\to\file}}Scan a specific file without attempting to repair it
sfc /verifyfile={{path\to\file}}Context
tldr-pages: windows/sfc
Revisions (0)
No revisions yet.