2018-01-10 09:37:39 +00:00
|
|
|
# sfc
|
|
|
|
|
|
|
|
> Scans the integrity of Windows system files.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/sfc>.
|
2018-01-10 09:37:39 +00:00
|
|
|
|
|
|
|
- Display information about the usage of the command:
|
|
|
|
|
|
|
|
`sfc`
|
|
|
|
|
|
|
|
- Scan all system files and, if possible, repair any problems:
|
|
|
|
|
|
|
|
`sfc /scannow`
|
|
|
|
|
|
|
|
- Scan all system files without attempting to repair any:
|
|
|
|
|
|
|
|
`sfc /verifyonly`
|
|
|
|
|
|
|
|
- Scan a specific file and, if possible, repair any problems:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`sfc /scanfile={{path\to\file}}`
|
2018-01-10 09:37:39 +00:00
|
|
|
|
|
|
|
- Scan a specific file without attempting to repair it:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`sfc /verifyfile={{path\to\file}}`
|
2018-01-10 09:37:39 +00:00
|
|
|
|
|
|
|
- When repairing offline, specify the boot directory:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`sfc /offbootdir={{path\to\directory}}`
|
2018-01-10 09:37:39 +00:00
|
|
|
|
|
|
|
- When repairing offline, specify the Windows directory:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`sfc /offwindir={{path\to\directory}}`
|