Is there any command line utility in Windows Server 2012 that will reduce the size of C:\Windows\WinSXS
. On one of my main production systems that has Hyper-V and Remote Desktop Services, this folder and stuff beneath it is 30+ gigs.
Update That "It's 30 gigs I must fix this" urge was reduced when I realized that Windows reports the size of the folder as if it didn't use hard links, when in fact it does, so actually, it's not really as big as we might have thought. See the links in the comments below.
Uninstall-WindowsFeature $FeatureYouDontWant -Remove
is probably the best supported thing you can do to reduce Component Store size.There are some tools that claim to be able to shrink WinSxS, but it's so easy to break your Windows installation by fiddling around in there, none of them are recommended.
Uninstall unused features by running in admin mode :
Free space in WinSxS using (some may not work depending on windows version):