@lexi.ch home, code, stuff

Windows Image cleanup 02.05.2017

Windows 10 and above keeps a lot of packages from updates and installations, which cannot be cleaned with the Disk cleanup tool. Here are two commands that do a rigorous cleanup (Attention: Breaks your Snapshot / Rollback / Save Point!)

Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Dism.exe /online /Cleanup-Image /SPSuperseded