dism
Windows CMD · System · available in the simulator
What it does
Manages Windows images and components.
Syntax
dism /Online /Cleanup-Image /opción
Options and parameters
/OnlineTargets the running operating system.
/ImageTargets a mounted Windows image.
/Cleanup-ImagePerforms cleanup and recovery operations on the image.
/CheckHealthChecks whether the image is marked as corrupted.
/ScanHealthScans the image for corruption.
dism /online /cleanup-image /scanhealth/RestoreHealthRepairs the Windows image.
dism /online /cleanup-image /restorehealth/StartComponentCleanupCleans up superseded components in the component store.
/Get-PackagesLists packages in the image.
/Enable-FeatureEnables a Windows feature.
/Disable-FeatureDisables a Windows feature.
Usage examples
dism /online /cleanup-image /scanhealthdism /online /cleanup-image /restorehealth