DSIM Recommended Order of Commands

Recommended Order of Commands

Run these commands one at a time, pressing Enter after each: 

  1. Check Health (Quick check for corruption)
    DISM /Online /Cleanup-Image /CheckHealth
  2. Scan Health (Scan component store for corruption)
    DISM /Online /Cleanup-Image /ScanHealth
  3. Restore Health (Repair the image using Windows Update)
    DISM /Online /Cleanup-Image /RestoreHealth
  4. System File Checker

 (Repair system files using the fixed image)
sfc /scannow

 

Optional Cleanup Command

To reduce the size of the WinSxS folder after repairs, run:

  • DISM /Online /Cleanup-Image /StartComponentCleanup 

Key Tips

  • Run as Admin: All commands require a command prompt or PowerShell launched with “Run as administrator”.
  • Internet Connection: /RestoreHealth uses Windows Update to download necessary files, so an internet connection is required.
  • If RestoreHealth Fails: If Windows Update is broken, you can use a Windows ISO/USB as a source:
    DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:1 /LimitAccess (Replace D: with your USB drive letter). 

 

 

 

Comments are closed

Latest Comments

No comments to show.