Cleanup the WinSxS Folder in Windows 7/8/10
A great way to save lots of space
In Windows 7 and Windows 8/10, there is a new folder under C:\Windows calledWinSxS, which basically stores dll and component files. It also stores older versions of all dll and component files and can grow to be quite large. In addition to that, a lot of space is taken up by the backup folder, which gets really big after you install a Service Pack, like SP 1 for Windows 7.
Here’s the size of my WinSxS folder on Windows 7:
And here’s the size of the WinSxS folder on Windows 8/10:
That’s a lot of space, especially for fresh installs of both operating systems! Once you install more Windows updates or any service pack, it’ll shoot up a few more GBs. Unfortunately, this is a super core set of files for Windows, so you never want to try to delete anything yourself. You can, however, save a little space.
The first thing you can do is reduce the size of the backup folder by running the following command (Start, type CMD):
If any service pack backup files were found, it will automatically clean them up. In my case, I didn’t install SP1, so there was nothing to remove and hence I didn’t save any space. You can do that on Windows 7 with SP1 and on Windows Vista SP1, you can do the same thing using a different tool. Basically, it removes all the older files, but makes the service pack unremovable.
The file is calledVSP1CLN.EXEfor Windows Vista SP1 and it’s calledCOMPCLN.EXEfor Windows Vista SP2. You can run these by clicking on Start and then typing inRun. When the Run dialog appears, just type in the commands.
There is also another way to remove the backup files for SP1 in Windows 7 and make it permanent. Simply open up the Disk Cleanup utility, click onClean Up System Filesand then check theService Pack Backup Filesbox. Also, be sure to check Windows Update Cleanup and Previous Windows installations if those options are present. The latter one willreduce the size of the entire Windows foldersignificantly.
So again to reiterate, in Vista you have to use VSP1CLN and COMPCLN and for Windows 7 you use the DISM command. Using any of these will make the service pack permanent. Other people have mentioned compressing the backup folder inside the WinSxS folder, but that’s probably not a good idea. Doing anything else will reduce the reliability of your system.
You can also run two other commands that will clear out older or out-dated components. Basically, once you run these commands, you won’t be able to uninstall any installed updates or service packs, so keep that in mind.
Remove Windows Features
In Windows 8/10, there are some nice new features added to the DISM command. You can now remove packages that you no longer want need or want. You can use the commands like below or you can simply use theAdd and remove Windows featuresoption, which gives you a nice GUI. This is the command:
So how do you know what features you can disable? Well, you can run the following command to see all the available features:
Now that you have the list, you can disable a feature like SimpleTCP shown below:
Pretty neat eh!? So that can save you a lot of space in Windows 8/10 if you plan on not using a lot of advanced features that are built-in by default. Enjoy!
Founder of Help Desk Geek and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time. He has over 15 years of industry experience in IT and holds several technical certifications.Read Aseem’s Full Bio
Welcome to Help Desk Geek- a blog full of tech tips from trusted tech experts. We have thousands of articles and guides to help you troubleshoot any issue. Our articles have been read over 150 million times since we launched in 2008.
HomeAbout UsEditorial StandardsContact UsTerms of Use
Copyright © 2008-2024 Help Desk Geek.com, LLC All Rights Reserved