Reduce the size of the winsxs directory in Windows 7 using DISM

Looking for ways to shrink the massive Windows 7 install? The winsxs folder was 6.7GB on my tiny 60GB SSD, way too big for something that seems to just hold service pack backups. Microsoft are AWFUL at explaining how to deal with this, numerous searches always come up with “Don’t touch it, it’ll break Windows!”. Thanks to some helpful people on Technet the solution is to use the Deployment Image Servicing and Management Tool (DISM). Just type the following in a command prompt:

dism /online /cleanup-image /spsuperseded

Instantly reduced my winsxs folder from 6.7GB to 4.5GB, which is a fair chunk of space on an SSD.