How to Run a DISM Health Check in Windows 11 Command Line
Running a DISM health check inspects and repairs the Windows system image, which underlies system file integrity, making it a companion to the System File Checker. Windows 11 includes DISM for deeper YYGACOR Login servicing repairs from an administrator command line.
The Command
DISM /Online /Cleanup-Image /RestoreHealth
What It Does
This DISM command checks the Windows image for corruption and repairs it, downloading replacement files through Windows Update if needed. `/Online` targets the running system, and `/RestoreHealth` performs the repair. This fixes the component store that System File Checker relies on, so running it before SFC often resolves problems SFC alone cannot.
When You’d Use This
This repairs the Windows system image that the System File Checker relies on, making it the deeper companion repair when SFC alone cannot fix problems. Running it before SFC is the recommended sequence for troubleshooting system file corruption, since it restores the component store from which SFC draws its replacement files, addressing problems at a more fundamental level.
Useful Variations
To only check for corruption without repairing, `DISM /Online /Cleanup-Image /CheckHealth` gives a quick status, and `/ScanHealth` performs a more thorough scan without fixing. The typical repair sequence is DISM `/RestoreHealth` followed by `sfc /scannow`, addressing both the image and the system files in order.
If It Doesn’t Work
This requires administrator rights and an internet connection, since it may download replacement files through Windows Update. The process can take a while and may appear to pause partway, which is normal, so let it finish. After it completes, run `sfc /scannow` to repair system files using the restored image. If it fails to connect, check your internet connection, since it needs online access to fetch files.
Good to Know
This command requires administrator rights and an internet connection, since it may fetch replacement files through Windows Update to perform repairs. The process can take a while and may appear to pause partway, which is normal. Running DISM before SFC is the recommended order when troubleshooting deeper system file corruption.
Putting It Together
Once you have run it once or twice, this becomes second nature. As part of keeping Windows healthy and automating upkeep, this command is part of the maintenance routine that resolves problems and prevents them. Combined with the related service and repair commands, it gives you direct control over the background machinery that keeps the system running well. Like anything in the terminal, the real value comes from trying it on your own system and adapting the variations above to what you actually need, so it is worth experimenting with in a safe, low-stakes situation before relying on it in a script or during troubleshooting. Keeping a note of the commands you find most useful, along with the variations that fit your workflow, turns scattered one-off tricks into a personal reference you can draw on whenever a similar task comes up again.