TechTips - WinSxS Folder Cleanup

TechTips
This is an issue I have seen a lot and can cause problems for users with either small hard drives, like the new SSD hard drives that are becoming more popular, or a user with a SAN (storage area network) and VM's (virtual machine) on it that are growing out of control. In either of the cases the disk space is much more expensive per GB than say your typical SATA hard drive. When the WinSxS folder starts taking over 3-9 GB of space (some people report up to 25GB) on a drive that costs say $4 a GB (estimated a 32GB SSD at $128) it gets a little annoying and costly. So what is the folder and what can you do about it?

The WinSxS folder is actually a very important and useful folder in Windows 7, Vista and Server 2008, it basically stores a copy of all of your important system files in case something happens to the original file, it can be easily replaced from the WinSxS folder. This is a great concept if the folder wasn't growing as rapidly as many users are claiming. When this folder is getting to be anywhere from 4GB to 12GB and the user is using a SSD hard drive with only 32GB (before formatting, after formatting you get about 30GB of space in Windows) then that means this folder could be potentially taking up nearly a third of your entire disk space. That isn't acceptable and Microsoft needs to do something about it.

So that leads me to what can be done about an ever growing WinSxS folder, from what I have read and seen the answer is, there are a few built in tools for Vista SP1 and SP2 (discussed later) that will help you clean up the folder. A lot of people are asking if you can manually go in and delete files in the WinSxS folder, and to that I would say, there isn't a truly safe manual way to delete or move files from here (not entirely true but I wouldn't do it if I was an amateur and didn't have extensive knowledge of system files). You can go in and manually do this type of thing but again I stress it isn't safe to do unless you really know what you are doing. If you remove the wrong file you can damage your install of Windows or you could remove a file and then if your original file fails (gets deleted, corrupted, or changed) it won't be able to restore it, and again your Windows installation will be hosed.

I don't think Microsoft thought this through, I saw a post from a Microsoft engineer (self proclaimed, I can't vouch they were really employed by Microsoft) explaining what the WinSxS folder was and they compared disk prices and sizes to explain why an ever growing WinSxS folder wasn't an issue in this day and age. This is all good when you are talking about a 1TB SATA hard drive that cost $85 bucks and your cost is only 12 cents per GB, but when you get into data storage with expensive SAS drives or the new SSD hard drives that are much smaller and more expensive per GB this becomes a huge issue.

Now the tools I found to help fix this issue, and by fix I really mean delay the size getting to big for the hard drive.

The first tool is for users who have Vista SP1 and people have reportedly gotten upwards of 3GB's back from it (If you have SP1 integrated this will not work, also if you run this tool you will not be able to remove any updates or service packs). The tool is found in your System32 folder and it's called "vsp1cln.exe", to use the tool, do the following:
1. Open My Computer

2. Double click C:\ (or the drive letter Windows is installed on)

3. Double click the Windows folder

4. Double Click the System32 folder

5. Find the vsp1cln.exe file and right click it

6. Choose Run as administrator

7. Let the program run, it will clean all redundant files out of the WinSxS folder

8. Close everything and check your WinSxS folder and see if you got any space back, the space gained will differ depending on your system, installed programs, etc...so you may not get 3GB's back.

There is another tool for users who have Vista with SP2, the "compcln.exe" file that is found in the System32 folder can help you to greatly reduce the size of your WinSxS folder (again running this tool will make it impossible to remove updates and service packs, so make sure you are happy with your updates or you will be reinstalling Windows). To use the file do the following:
1. Open My Computer

2. Double click C:\ (or the drive letter Windows is installed on)

3. Double click the Windows folder

4. Double Click the System32 folder

5. Find the compcln.exe file and right click it

6. Choose Run as administrator

7. Let the program run, it will clean all redundant files out of the WinSxS folder

8. Close everything and check your WinSxS folder and see if you got any space back, the space gained will differ depending on your system, installed programs, etc...so you may not get 3GB's back.

Well that is all I can tell you about the WinSxS folder and ways to clean it up. I didn't find anything on Windows 7 but you can try the above commands and see if they work, or if they even exist. I think pretty much in Windows 7 you are stuck with a large folder that will keep expanding as you add and remove programs. The folder is there with good intentions but Microsoft didn't put enough thought into the newer technologies (SSD hard drives being the main one) that are starting to become more mainstream. Hopefully Microsoft will release a patch that will fix the problem with the WinSxS folder but until then we are stuck with only a few options, many of which won't work for some users.

Published by TechTips

I am a senior systems engineer and enjoy writing articles about computers, technology and other electronics.  View profile

10 Comments

Post a Comment
  • JoAnn3/22/2012

    Worked for me !!!!! I am so happy ! Thanks soooo much !!!

  • arda beyaz3/17/2011

    Manuel clean.

    http://www.iddaamacsonuclar.com/winsxs-silmek-winsxs-temizlemek.html

  • Midget132/7/2011

    I was asked to sort out a 100gb hard disk on a vista install that had a winsxs fold in excess of 49gb! that is way more than unacceptable! and due to a dodgy install of vista none of the service packs would install to even allow use of these utilites....

  • par11/6/2010

    thanks I saved about 14GB in the winsxs folder.
    Just by removing software i don't need then running compcln.exe

  • Tsmith9/2/2010

    The new and even more annoying issue regarding this winsxs folder is in Windows Embedded Standard 7 (WES7). On embedded systems are are almost gaurenteed to have a small hard drive or storage size. This folder gets in the way and on a simple WES7 build this folder takes up close to 2GB of space. This makes Thin Client hardware (at least today's Thin Client hardware) very challenging to use with the limited storage space most of them come with. With this in mind I think Microsoft should provide a solutions to this problem. How can you have an effective Embedded OS that has such large capacity requirements? Can you say "lose market share"?

  • Brianw298/20/2010

    For those thinking of going back to Windows XP to get away from the WinSXS issue, you will have to think twice. This folder now exists in Windows XP as well.

    Although the folder does not grow nearly as large, from what I can tell so far, it does exist.

  • SCHT8/4/2010

    This WinSXS is primarily use to house older system that has been replace/patch during the bi weekly windows update. For Windows Vista and Windows Server 2008 SP2 there is a file in %SystemRoot%system32compcln.exe This file will remove all formally patch files in WinSXS folder however at the same time you will loose the ability to roll back patches that has been applied.

    File usage are: compcln.exe /v:logfilepath /hide /quiet /o:(path to Windows directory of the offline Windows partition)

  • Mike7/27/2010

    I have found and used a little tool to move my large winsxs folder to next disk drive. http://vitana-group.com/article/microsoft-.net/winsxs-folder
    Thanks vitana because my system drive had less than 1Gb free space. Now it has 17Gb free.

  • J Henry Jr6/30/2010

    I am absolutely livid about this terrible system. I have spent a lot of time looking for ways to put this darned folder on a diet and aside from the SP2 rollback cleaner have come up empty. I have about a month and a half on the Vista 64 installation I am using and the winsxs folder is 15.2 GB, 70% of the used space on the C: drive! Before running compcln it was almost 22 GB! I had originally setup the drive and its three backups (yes three backups, it is Windows after all) with a 30 GB system partition. I have since had to repartition all four disks with 60 GB partitions because of this ridiculous winsxs monstrosity.

    Looking in my winsxs subdir, there are freaking 3 gigs of *microsoft-windows-naturallanguage6* files! WTF is up with that? The best I can tell is that has to do with searching things using normal conversational like queries, in other words, who cares? I don't even want that! And what the hell is microsoft-windows-s..chrecognizerenu.ale and microsoft-windows-s..chrecogniz

  • deimos34286/6/2010

    As this folder is purely for backup purposes, you can also compress it. It may take slightly longer to restore a good copy of the library, but that's not a big deal on a day-to-day basis. Disk space is.

Displaying Comments

To comment, please sign in to your Yahoo! account, or sign up for a new account.