How to trim the WinSXS folder in Windows 8

If you ever notice on a Windows 8 [and Windows 8.1] system, the WinSxS folder keeps on getting larger. This is where updates [security and non-security] are stored.

Unfortunately you risk running into problems if you delete the folder [recall that on Windows XP and Windows Server 2003 you could delete the backups of the updates].

There is a new feature called delta compression. If using Windows 8, you need to install KB2871777 [“A servicing stack update is available for Windows RT, Windows 8, and Windows Server 2012: September 2013”] to get this feature. Windows 8.1 should include this update.

Open an elevated command prompt and enter this command:

DISM /Online /Cleanup-Image /StartComponentCleanup

Wait patiently as this will take quite a while. Typically over an hour. So run the command when you don’t need it. Consult the log file cbs.log file if you experience any issues.

Update: There is now a variation of the Windows 8 update as part of an update for Windows 7. You can get the update here. Note that it may have already been installed as part of the updates in October 2013.

I tried it on a system and the WinSXS dropped from 12 GB to 10 GB. Better than nothing.

Note: You can’t uninstall any updates that were installed prior to running the command.

Note: The command won’t work if a reboot is pending because of updates installed. So, reboot first.


About ebraiter
computer guy

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: