Dism

From Piszczynski

DISM Tool

Use options to check windows image:

  • dism /online /cleanup-image /checkhealth
  • dism /online /cleanup-image /scanhealth
  • dism /online /cleanup-image /restorehealth

Check for not required windows SxS components using DISM.exe in Powershell:

To find out how much space could be saved:

  • Dism.exe /online /Cleanup-Image /AnalyzeComponentStore

To clear space and remove removes superseded and unused system files:

  • Dism.exe /online /Cleanup-Image /StartComponentCleanup

To remove all superseded versions of every component in the component store (will prevent any uninstallation of components)

  • Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase

To remove any backup components use the following command - this will prevent any uninstallation of any service packs:

  • Dism.exe /Online /Cleanup-Image /SPSuperseded

Get list of all installed updates and pipe to clipboard:

  • dism /online /get-packages | clip