Where Customization Begins 

  • cleanup WINSXS with DISM after Windows 7 SP1 is installed

  • Windows® Automated Installation Kit (WAIK), Windows System Image Manager (WSIM), Win PE and Windows Assessment and Deployment Kit (ADK) Tutorials are right here.
Windows® Automated Installation Kit (WAIK), Windows System Image Manager (WSIM), Win PE and Windows Assessment and Deployment Kit (ADK) Tutorials are right here.
 #25520  by Neuropass
 05 Feb 2013, 04:36
NOTE:
The command needs to be run from an elevated command prompt and you cannot uninstall the Service Pack after it completes



Code: Select allDISM /online /Cleanup-Image /SpSuperseded
 #25885  by ricktendo
 05 Mar 2013, 21:01
Also worth pointing out that Windows 8 has a new similar feature that will cleanup superseded updates/hotfixes. This is the command to do that

Code: Select alldism /online /Cleanup-Image /StartComponentCleanup


There is also an option in cleanmgr.exe (I've never used it but apparently this one will also compress winsxs files in addition to removing superseded updates)

Image

Source
 #25887  by 351837
 05 Mar 2013, 21:38
ricktendo » 05 Mar 2013 22:01 wrote:Also worth pointing out that Windows 8 has a new similar feature that will cleanup superseded updates/hotfixes. This is the command to do that

Code: Select alldism /online /Cleanup-Image /StartComponentCleanup


One of few great things in windows 8. To bad that windows 7 doesn't support this command. :-(