Dism: Difference between revisions

From Piszczynski
piszczynski>Aleks
piszczynski>Aleks
Line 10: Line 10:
Check for not required windows SxS components using DISM.exe in Powershell:
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
*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:
Get list of all installed updates and pipe to clipboard:
*dism /online /get-packages | clip
*dism /online /get-packages | clip

Revision as of 16:15, 5 July 2023

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