This article explains how to check and repair Windows images using the DISM (Deployment Imaging Service and Management Tool) and SFC (System File Checker) utilities. You can repair both online images (running Windows installations) and offline images (WIM or VHD files).
Quick Repair with SFC
Run the System File Checker to scan and repair system files:
sfc /scannow
Check an Image with DISM
- Scan the image for corruption
Dism /Online /Cleanup-Image /ScanHealth
- Check if the image is repairable
Dism /Online /Cleanup-Image /CheckHealth
- Healthy: No corruption found.
- Repairable: Use
/RestoreHealth
to repair. - Non-repairable: Discard the image and start again.