SFC and DISM Repair — System File Checker and Image Repair Guide
Errorsystem
Overview
Complete guide to using SFC /scannow and DISM to repair corrupted Windows system files, fix component store corruption, and restore system health.
Key Details
- SFC (System File Checker) scans and repairs protected Windows system files
- DISM (Deployment Image Servicing and Management) repairs the Windows component store used by SFC
- Run DISM first if SFC reports 'Windows Resource Protection found corrupt files but was unable to fix some of them'
- SFC logs results to C:\Windows\Logs\CBS\CBS.log
- DISM /RestoreHealth downloads repair sources from Windows Update
Common Causes
- System files corrupted by malware, failed updates, or disk errors
- SFC unable to repair because the component store itself is corrupted
- Windows Update failing due to corrupted system components
- Application installations replacing protected system files with incompatible versions
Steps
- 1Run SFC first: sfc /scannow in elevated Command Prompt (takes 10-30 minutes)
- 2If SFC finds unfixable corruption, run DISM: DISM /Online /Cleanup-Image /RestoreHealth
- 3After DISM completes, run SFC again: sfc /scannow
- 4Check SFC results: findstr /c:"[SR]" %windir%\Logs\CBS\CBS.log > %userprofile%\Desktop\sfclog.txt
- 5If DISM fails: try with a Windows ISO: DISM /Online /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim
- 6As a last resort: perform an in-place upgrade repair using the Windows Media Creation Tool
Tags
sfcdismsystem-repairfile-checkercomponent-store
Related Items
More in System
windows-C000021A-status-system-process-terminatedWindows Error 0xC000021A — STATUS SYSTEM PROCESS TERMINATED
Criticalwindows-C0000225-boot-configuration-errorWindows Error 0xC0000225 — Boot Configuration Error
Criticalwindows-C000000F-boot-selection-failedWindows Error 0xC000000F — Boot Selection Failed
Criticalwindows-80004005-unspecified-errorWindows Error 0x80004005 — Unspecified Error
Warningwindows-80070570-file-or-directory-corruptedWindows Error 0x80070570 — File or Directory Corrupted
Errorwindows-system-0xc0000185Windows Error 0xC0000185 — Boot Device Inaccessible
CriticalFrequently Asked Questions
Run SFC first. If SFC reports it cannot fix corruption, run DISM to repair the component store, then run SFC again. DISM fixes the repair source that SFC uses.