Category: Troubleshooting & Logs
Official Documentation: Microsoft Learn – DISM Overview
Publisher: Microsoft Corporation
Applies to: Windows 10, Windows 11 (25H2), and Windows Server 2025
Overview
When Windows system files become corrupted or updates fail to install, it’s best to follow a structured repair process. This sequence ensures component integrity is restored safely without unnecessary reinstalls.
This guide outlines the **recommended recovery order** using SFC (System File Checker) and DISM (Deployment Image Servicing and Management).
---
Recommended Command Sequence
| 1 | Code:
sfc /scannow |
Scans and repairs corrupted or missing system files using the local Windows cache. |
| 2 | Code:
dism /online /cleanup-image /checkhealth |
Quickly checks whether the component store has known corruption recorded. |
| 3 | Code:
dism /online /cleanup-image /scanhealth |
Performs a deeper scan of the Windows image for potential corruption. |
| 4 | Code:
dism /online /cleanup-image /restorehealth |
Repairs the component store using Windows Update or a specified ISO source. |
| 5 | Code:
sfc /scannow |
Runs again after DISM to revalidate repaired files and ensure full system integrity. |
| 6 | Code:
chkdsk /scan |
Checks file system and disk structure for errors (no reboot required). |
| 7 | Code:
Restart System |
Completes pending repairs and clears temporary servicing logs. |
Additional Recommendations
• Always run these commands in an elevated Command Prompt (Run as Administrator).
• If `/restorehealth` fails, mount an official ISO and specify:
Code:
/source:D:\sources\install.wim /limitaccess
Code:
sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows
• `C:\Windows\Logs\CBS\CBS.log`
• `C:\Windows\Logs\DISM\dism.log`
---
Quick Reference Summary
| SFC | Scans and repairs system files using cached components. |
| DISM | Services or repairs the Windows image (component store). |
| CHKDSK | Scans for disk errors and bad sectors. |
Link to Related Guide
For detailed DISM command reference and error troubleshooting, see:
👉 Deployment Image Servicing and Management (DISM) • Complete Guide for Windows 11 25H2
---
Policy
All commands reference official Microsoft tools. Execute only from trusted environments. Avoid third-party “registry cleaners” or scripts that modify system components without validation.
Last updated: October 2025 • Verified by PCHF Staff