Dism: Difference between revisions

From Piszczynski
piszczynski>Aleks
m (4 revisions imported)
 
(2 intermediate revisions by one other user not shown)
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:
*dism /online /get-packages | clip

Latest revision as of 22:31, 15 November 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