DISM – Spring cleaning
Useful cleaning commands with dism – for now, the Windows 7 command can still be used in Windows 10 (1607)
Windows 10 / Server 2016+
dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Windows 8.1 / Server 2012 R2
dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Windows 8 / Server 2012
dism /Online /Cleanup-Image /StartComponentCleanup
Windows 7 / Server 2008 R2
dism /Online /Cleanup-Image /SPSuperseded /HideSP