Apps & Software
How to Use the Three Key DISM Commands to Repair Corrupt Windows System Files
· GlobeWire Daily Editorial Desk

Quick Overview
If Windows system files become corrupted, the built‑in Deployment Image Servicing and Management (DISM) tool can scan and fix the component store. The three commands—`/CheckHealth`, `/ScanHealth`, and `/RestoreHealth`—cover detection, reporting, and automatic repair.
What Each Command Does
- `DISM /Online /Cleanup-Image /CheckHealth` – Quickly checks whether Windows has already flagged corruption and whether it is repairable. It runs in seconds and is the recommended first step.
- `DISM /Online /Cleanup-Image /ScanHealth` – Performs a fresh, deeper scan of the component store and produces a detailed health report. Expect a few minutes of processing.
- `DISM /Online /Cleanup-Image /RestoreHealth` – Scans and attempts to repair any detected issues. By default it pulls replacement files from Windows Update.
Running DISM Safely
- Open Command Prompt or PowerShell as Administrator.
- Type the desired command exactly as shown, beginning with `DISM /Online /Cleanup-Image`.
- Wait for the operation to finish; the tool will display success or error messages.
When DISM Can’t Download Repair Files
If Windows Update is itself broken, DISM may fail to obtain the needed binaries. In that case:
- Download a Windows ISO from the official Microsoft download page.
- Mount the ISO (right‑click → Mount) to assign a drive letter (e.g., D:).
- Identify the correct edition index with:
``` DISM /Get-ImageInfo /ImageFile:D:\sources\install.wim ```
- Run RestoreHealth with the ISO as the source, replacing the drive letter and index number:
``` DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:D:\sources\install.wim:<index> /LimitAccess ```
- After DISM finishes, run `sfc /scannow` to let the System File Checker replace any remaining corrupted files.
Practical Tips
- Always run DISM before `sfc /scannow`; SFC relies on a healthy component store.
- Keep the command prompt open and avoid interrupting the process.
- If errors persist, consider a clean reinstall using the same ISO.
How to Verify the Fix
- Re‑run `DISM /Online /Cleanup-Image /CheckHealth` – it should report No corruption detected.
- Run `sfc /scannow` – it should finish with Windows Resource Protection did not find any integrity violations.
--- *The steps above are derived from Microsoft’s official DISM documentation and widely‑tested troubleshooting guides.*
Share this article
