Command Reference

sfc /scannow

Command Prompt System Integrity Advanced Risk: Moderate
Back to Command Library

Summary

Scans protected Windows files and attempts to replace corrupted copies. Microsoft recommends updating and restarting Windows, then completing DISM RestoreHealth before this repair command.

Syntax

sfc /scannow

Examples

sfc /scannow

Runs a complete protected-system-file scan from an elevated Command Prompt after the recommended DISM repair step.

Permissions

Administrator required: Yes

Run only from Command Prompt opened as administrator and follow organizational change policy.

Risk and Impact

Risk level: Moderate

Changes the system: Yes

SFC may replace protected Windows files. Save work, follow Microsoft's recommended DISM-then-SFC sequence, and do not interrupt the scan.

Supported Platforms

Windows 10 Windows 11 Windows Server

Important Output Fields

Windows Resource Protection did not find integrity violations

No protected-file corruption was detected.

found corrupt files and successfully repaired them

Windows replaced one or more damaged protected files.

found corrupt files but was unable to fix some

Further component-store analysis may be required.

Common Errors

You must be an administrator

The terminal was not opened with elevated rights.

There is a system repair pending

Complete the pending restart or servicing operation first.

Official References

Using System File Checker in Windows

Microsoft Support · Official Documentation

Open Source