How To Reduce Size of WinSXS
Written by Josh Lyon   
Monday, 04 January 2010 10:56

I've read all about WinSXS (Side by Side) and how it tries to solve the DLL Hell problems that have plagued Windows for ages, but I thought it was ridiculous that this folder was taking up over 10 gigs of precious space on my 64 GB solid state drive. A few months back, I replaced my laptop's optical drive with a 500 gig HDD to try to move some of my media and documents over. However, when I went to install the latest service pack to Visual Studio today, I noticed I didn't have enough space to install it. I used a simple tool called TreeSize Free to analyze the disk space and see what was taking up all the room. A quick drill down of the largest item showed that the WinSXS folder was talking up 10.2 GB of space.

2010-01-04_103841

Some research showed that if you have Windows Vista SP1 installed, there is a tool called VSP1CLN.exe in the C:\Windows\System32 folder which can be used to clean up the old (pre SP1) files to regain some space. The downside to this is you won't be able to uninstall SP1, so you should make sure the system is running stable with SP1 before running the tool. I looked for this file, but quickly realized that it could not be found! It turns out this was because I don't have Vista SP1 installed (I actually have SP2 installed). If you have SP1 installed, you can use the VSP1CLN file in place of COMPCLN in the directions below.

You can check your Service Pack version by looking at your computer properties: click Start, then right clicking on Computer and clicking Properties. This showed I was running Windows Vista Service Pack 2:

2010-01-04_104243

A bit more research later and I found that Vista SP2 has a similar Service Pack Cleanup Tool in the same C:\Windows\System32 directory called COMPCLN.exe. You can start the program by using the following instructions:

  1. Click Start > Run
  2. Type in CMD and press [enter]
  3. At the command prompt, type COMPCLN and press [enter]
  4. Press Y when prompted to continue
    (the application will now start cleaning up the old files)

2010-01-04_105040

The size of the WinSXS folder (and potentially others?) should now have been reduced. On my computer, I found that the WinSXS folder was only reduced by 1 GB, but others have seen 3-4 GB reductions.

Comments (48)

Thanks for this tip, didn't help much though , Lowly rated comment [Show]
Are you people for real ? , Lowly rated comment [Show]
...
0
THANKS ITS A RAELLY POWERFULL TOOL I HAVE SAVED UP 1 GIGA
anas , July 14, 2010
... , Lowly rated comment [Show]
Thank you Mr. Lyon , Lowly rated comment [Show]
Thanks for the Feedback
62
Thanks for the comments! I'm glad to see that this has helped others and it's really interesting to see how much space it has saved for the different people (400 MB, 1 GB, 1.9 GB).
Josh Lyon , August 24, 2010
...
0
knocked 2.3 GB of my winsxs file but only 1.1 GB off my entire C: Drive. Is that normal?
Cal , September 06, 2010
not working in win
0
this command does not exist anymore in windows 7
amgadelsaeigh , September 17, 2010
WinSxS
0
Lyon!!!! Thank you very much smilies/grin.gif. I have reduced around 1GB. this is great ideas.
shakti , September 18, 2010
...
0
Thanks. I got back 2.3Gb!
ab , September 18, 2010
solve of this problem , Lowly rated comment [Show]
....
0
mustafa yanardağ smilies/cheesy.gif
mustafa , October 07, 2010
...
0
My file was at a whopping 17.9 GB; this knocked it down to 16.2. That will be at least somewhat helpful - thanks!
Andy-san , October 12, 2010
Winsxs
0
Does this tool is also applicable for Windows 2008?
Ernesto , October 17, 2010
Win7 and 2008
62
@amgadelsaeigh: Thanks for the heads up on this not being applicable to Windows 7

@Ernesto: I haven't tested this on Windows 2008... you can always try it and let the rest of us know though! smilies/wink.gif
Josh Lyon , October 29, 2010
corrections
0
@Cal:
it's normal for the size discrepancy if your files are compressed. decompress your C: drive and watch your speed increase!
@Mustafa:
i believe you are confused...defrag merely reorganizes files, not delete...
darkflux , November 12, 2010
I saved a lot of space
0
Great, concise article. I saved about 3GB this way which I needed badly! Thanks Josh!
Carl , December 26, 2010
of course not in win 7
0
Of course this does not (yet) exist in Windows 7 or Windows 2008 R2. A service pack has yet to be released for those operating systems !
ixul , December 28, 2010
RE: Ixul
62
Windows SxS is used for more than just full-on service packs. As different libraries are installed or upgraded the SxS folder serves as an assembly cache for previous versions of the libraries. This means this could also apply to other 'minor' updates like security patches or even other updates (vendor/software).
Josh Lyon , December 28, 2010
...
0
1.2 GB saved here.
x , January 01, 2011
thanks
0
0.9 GB saved. Not as much as I'd hoped, but every little bit helps!
boofhead , January 08, 2011
Cheers
0
About 1.5GB saved - thanks guys!!!
Shan , January 26, 2011
Question
0
What about Windows7??? how to clean it in win7, anyone help mesmilies/angry.gif
Muqtada , January 27, 2011
Found How to Reduce Size of Winsxs in WIN7
0
Hi I Found How It Works In WIN7
1.Open My Computer,
2.Right Click on The Windows System Drive and Click on Properties
3.Then From The Properties Dialog Click On "DisK Cleanup" in General Tab.
4.Wait for a while to Open The "DisK Cleanup" Dialog.
5.Now Here it has a Option On Lower Left "Clean up system files".Click on it.
6."DisK Cleanup" Dialog will Re-Open. Now you will find "Service File Backup Files" in "Files to Delete" Box. Just Tick It Out and click Ok.
7.A Conformation Pop-Up Will Open, Click "Delete Files" to Proceed.
8.Its All Done.smilies/cheesy.gifsmilies/cheesy.gif
Sunny , January 28, 2011
Found How to Reduce Size of Winsxs in WIN7
0
Here are the Screenshots, How to Do


Sunny , January 28, 2011
...
0
had file of 8.something
brought down to 7.something
thnx!!!
NIMZ , January 29, 2011
cheap computers
0
I really believe this step involving the size of this folder in windows vista to be a step backwards for Microsoft. How does a department go about creating and deploying windows 3rd party images to PC's from a 20 GB Windows install with MS Office, I cannot believe MS took this route. ( Well it can be done but what a waste of time and disk space.)
cheap computers , February 04, 2011
...
0
thanks for this information...i knocked the size of my winsxs folder down from 10.1gb to 8.2gb..im well chuffed...thanks again x x
Kate , February 07, 2011
...
0
from over 22GB to 19GB yay??
Meech , February 25, 2011
Thanks
0
Thanks - used this and got back over 3Gb (running SP2)

Now how do I get rid of all those dll's that go with old versions of applications or applications that I have since uninstalled??? :-)

THinks, hunt for *.dll with a last access date of ???
Vince Melling , February 26, 2011
...
0
Thanks so lottttt!
Got back 2.9GB from 22.8GB to 19.9GB out of my SSD 64GB Toshiba (Vista SP1)

highy recommended!

stan , March 06, 2011
...
0
Thanx a lot ..... saved almost 2.5 GB !!
soy , March 19, 2011
sounds like its time to reinstall
0
sounds like its time to reinstall rather than go messing around
data support , May 10, 2011
... , Lowly rated comment [Show]
Thanks
0
Saved 2.4 GB, thanks for the tip!
u45 , June 04, 2011
:)
0
Thanks so much, I could kiss you! X
Sherri , July 28, 2011
a shade under 2GB
0
Went from 19.4GB down to 17.6GB... pretty sad that just a base install (Vista x64) with a small mixture of software uses up almost the entire space of an 80GB drive.
mcsnv , August 19, 2011
Thanks a lot
0
It gave me a GB or more. Thanks
;) , September 10, 2011
Thanks so much
0
I found 2gigs of queued error reporting and will everything else i saved 5 gigs, thanks alot
Frank , September 12, 2011
Size of WinSXS
0
Thanks mate. COMPCLN.exe cleaned up GB's of .....
ATUL KHACHANE , September 30, 2011 | url
Regained 5 GB
0
Win7 Ultimate -Had a 55 GB WinSXS folder....
Mark , September 30, 2011
Quote " We desperately need competitive alternative to the Windows Totalitarian monarchy. "
0
I noticed a users comment "We desperately need competitive alternative to the Windows Totalitarian monarchy.". Solution: It's called Linux.
Nathan P , October 06, 2011 | url
Thanks for harming others
0
Well done, Josh. With this tool, some have found a way to save some space on their hard drives.

They've also made their PCs less reliable. Windows needs the WinSxS folder to keep software running despite requiring different DLLs by the same name.

The AWA (Anti-Windows Alliance)
The AWA , October 16, 2011
Windows Server 2008 R2
0
My C drive doees not have a clan up button...and compcln is also not found, did any one done this onb windows 2008 R2?
daniel , November 04, 2011
Saved 2G :-)
0
12.7 down to 10.7 - thanks for the tip!
UKNN , January 13, 2012
best article to me
0
The numerous designs in addition to models intended for Ice wristwatches make fun available options to the many who can opt for a watch in line with their desires and prerequisites. The impressive choice of Ice watches provde the exquisite appeal and one of a kind designs which might be unrivaled from the watch marketplace. One of the most extremely famous and successful models connected with Ice wristwatches is it is unisex went up collection check out. This watch incorporates a white dial and light solid event with eye-catching and vibrant features. The wide variety and attractiveness of The rocks watches cause them to perfect for virtually every wrist and will automatically be current in fashion for quite a while to come together with being at affordable charges. Ice delivers watches which might be innovative in addition to unique having models which might be simple still, give correct functionality and this also has manufactured these watches get to be the must include accessories in this year. The capability that packages Ice watches apart from the rest is their own design idea that orbits around blending the revolutionary with this old, such as taking a old tasteful designs in addition to styling these individuals up when using the contemporary choice of hues in addition to tints, metals in addition to plastics - this can be the signature glimpse of The rocks Watches.
...
0
I got what you intend, appreciate it for putting up.Woh I am glad to find this website through google.
wedding planner salary , April 23, 2012 | url
MS are knob jockeys
0
What a pile of horseshite. Microsoft are wankers.
Angus , May 03, 2012

Write comment

smaller | bigger
security image
Write the displayed characters

busy