# SFC (System File Checker)

> What sfc /scannow does, how to read its results, where the CBS.log is and when to run DISM first.

System File Checker (sfc.exe) is a Windows tool that scans protected system files and replaces damaged or missing ones with correct copies from the component store. The common command is sfc /scannow, run from an elevated command prompt; results are logged in C:\Windows\Logs\CBS\CBS.log.

## Results and what they mean

'Windows Resource Protection did not find any integrity violations' means the protected files are fine.

'found corrupt files and successfully repaired them' means repairs were made; restart the PC.

'found corrupt files but was unable to fix some of them' usually means the component store is damaged: run DISM /Online /Cleanup-Image /RestoreHealth and then sfc /scannow again.

## Other switches

sfc /verifyonly scans without repairing. sfc /scanfile=<path> checks one file. /offbootdir and /offwindir let SFC repair an offline Windows, for example from the recovery environment.

## How to run SFC

1. Open Terminal (Admin) or Command Prompt as administrator.
2. Run: DISM.exe /Online /Cleanup-Image /RestoreHealth
3. Run: sfc /scannow
4. Wait until verification reaches 100% and read the result message.
5. Restart the PC if files were repaired.

## Cautions

- Do not close the window while the scan runs.
- SFC only checks Windows system files; it does not repair programs, drivers or personal files.

## Sources

- [sfc (Microsoft Learn)](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/sfc)
- [Use the System File Checker tool (Microsoft Support)](https://support.microsoft.com/en-us/topic/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system-files-79aa86cb-ca52-166a-92a3-966e85d4094e)

Last updated: 2026-10-08
URL: https://raincleaner.eu/wiki/windows/sfc
