Example usage for sfc.
sfc /verifyonlyScan protected Windows system files and repair supported issues.
sfc [/scannow] [/verifyonly] [/scanfile=<file>] [/verifyfile=<file>] [/offwindir=<offline windows directory> /offbootdir=<offline boot directory> /offlogfile=<log file path>]The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.
Example usage for sfc.
sfc /verifyonly| Option / clause | Description |
|---|---|
/scannow | Scan all protected system files and repair issues when possible. |
/verifyonly | Scan protected files without making repairs. |
/scanfile=<file> | Scan the specified full path and attempt repairs. |
/verifyfile=<file> | Verify the specified full path without repairs. |
/offwindir=<directory> | Set the offline Windows directory for repair. |
/offbootdir=<directory> | Set the offline boot directory for repair. |
/offlogfile=<path> | Write the offline repair log to the specified location. |
/? | Display command help. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.