Reduce the size of Vista's WinSxS Folder

I've been looking for this for a long time. On Windows Vista, there is a folder called "WinSxS", which stands for "Windows Side by Side". It's a part of the move to a "component" based architecture, where the WinSxS folder contains multiple versions of a component such as Windows Media Player or IIS, and the appropriate versions are hard-linked into the system. Unfortunately, Windows is stupid (surprise!), and provides no easy way to remove old versions. While it's understandable that users might want to uninstall updates for one reason or another, after the initial install it becomes pretty unlikely.

Now that Vista SP1 is out, there is a tool which will remove all of the RTM versions of updated components. Unless you plan on uninstalling SP1, there is no reason to keep these components around.

Cleaning out the directory is pretty simple. Click the start menu, and in the search field type vsp1cln. A single result should show up. I have UAC disabled on my system, so if it's an issue run cmd first, and run the utility through that.

I started with a WinSxS folder of 10.9 GB. After running the cleaning tool, it dropped to 8.48 GB - nearly 2.5 GB! While this doesn't matter so much on desktops, it could make a big difference in virtual machines, or on laptops.

It's too bad that there isn't a nice way to do this from a GUI. Hopefully SP2 will include one.

Comments

Thanks

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.)

Thanks for the Post though Andrew, again a MS solution that hasn't really worked as it has only reduced my WinSXS folder by around 2 - 3 GB and the folder is still 7.4 GB. When will MS start listening to consumers or at least think of consumers when making new products.

^^^ I agree. I also only

^^^ I agree. I also only have 20GB for my Vista partition (dual booting XP and only 80GB hard drive). I've been running Vista (Business) for a little over a year and now I'm at the point that I don't have enough room to do anything.

I only have 200 MB of free space and can't even install the lastest MS updates.

My Windows folder is 14GB and 8GB is winsxs! Program Files is under 3GB.

Now I'm looking at having to completely blow away my partitions and start over again! I really don't have 1 full day to reinstall 2 OSes again, let alone figure out all the programs, utilites, and other tweaks I've done to the system to get it fully functional.

I can't even begin to believe that we are at a stage where an OS needs to be over 14GB!

i just bought a SSD 32gb

i just bought a SSD 32gb drive to install vista x64 on, my windows folder alone is 17GB, with 6gb of ram, the pagefile becomes 6.4Gb. it doesn't leave much space for installing apps like nero,office. Consider xp can be installed on a 200mb flash drive, and this fucking vista uses 26gb for install. wtf ? even after the method explained above, my winsxs folder is 11gb

A Clean windows vista install

A Clean windows vista install with all drivers, updates, and service packs should only take up to (in the neighborhood of) 17 - 18 GB. You should have removed all of your windows update backup files and removed any old system restore points that are redundant (or disabled system restore if you like to play with fire).

I don't understand why everyone WANTS to "clean" their winsxs folder. Every single file located in every directory of winsxs is REQUIRED BY THE OPERATING SYSTEM! The winsxs folder keeps redundant versions of dll's for applications and drivers so applications can load libraries which they are most compatible with.

Messing with WINSxs is pretty much crippling your application compatibility.

you would understand when you

you would understand when you have critical production 2008 servers that go from 40gb free space to less than a gig. this is a serious problem and in my opinion a stupid design.

i have yet to find a fix and not being able to delete those files that are taking up valuable and expensive space on my SAN is inexcusable.

clean windows is an oxymoron

18GB is obscene for an OS that doesn't really do much. Winsxs is a stupid solution to a stupid problem.. MS libraries are full of bugs and badly documented. I have seen several outright lies in MSDN which caused hours of wasted development time. No wonder that expensive proprietary software is then full of bugs and nasty badly behaved code which relies on bugs and bad behaviour in the system libraries, which change as soon as a new version is released, leading to wails of 'this update broke my app'.

IF MS could just document their code and make it work like they say it does then applications could just use the latest version of the library and MS wouldn't have to include 20 previous versions just in case someone installs an app which needs the old, broken, functionality.

really i'm not happy with

really i'm not happy with vista
after few days every day i found windows drive increases :(

http://www.vlite.net/ Make

http://www.vlite.net/

Make your Vista install take up less than half that.

I used nLite for my XP install on a Dell Mini 9, i am running Windows XP SP3 with all hotfixes and drivers for my laptop, and using less than 1GB for everything!

winsxs with no limit

After going through failed installations of MS Office and Nero Ultra serveral times, when they were installed finally, I was horrified to see that the winsxs folder grew to 17GB from about 10GB!
My Vista partition is only 21GB and I though it was very generous but now I'm worried because I still not yet installed other applications. I revisited my Vista documents and do not see any space requirement telling me about this winsxs business.
What on earth was MS thinking/smoking while building this OS!
Had MS put a warning about this winsxs, nobody would have bought this OS at all. Where do we get a refund...

Thanks for de info

Every time that I heard about new things on windonws, make me wanna change to my linux...

juanca

I have Vista SP2 and this

I have Vista SP2 and this program doesn't exist. Is there an equivalent? I tried vsp2cln but to no avail.

My WinSxs folder is over 15 GB.

SP2 also includes a Service

SP2 also includes a Service Pack Clean-up tool (Compcln.exe), which
helps restore the hard disk space by permanently deleting the previous
versions of the files (RTM and SP1) that are being serviced by SP2.

How to-
Open Command Prompt as Administrator (when UAC is enabled) and click on
Continue to jump ahead.
Execute the command Compcln.exe
It prompts to make SP2 permanent on your computer. Press "Y" to confirm!

thank you!!!

thank you so much! i was close to wiping my laptop and re-installing from scratch!! :)

compcln

Looks like Vista SP2 has a program called compcln.exe which does the same thing. It warns that all service packs will be permanent before running.

Thank you for allowing anonymous posting! :)

perfect

Thanks Excellent info xxx

i m thinking of not using

i m thinking of not using vista anymore..i have 30GB for my C partition and winsxs takes 10GB!!so the window files in total take about 18.1GB!!!!
I always delete and uninstall programs but to no avail.. it keeps eating my space!!its really frustrating!now i only have 112MB in my c drive...i cant run any updates or install any programs..everytime i delete something to free up the space...an hour later..the space is eaten up!
i hate vista!!

22 GB Winsxs file.

I am now running the SP3 file Compcln.exe. Thank you. I was shocked it was 22 GB and running it reduced it to 18 GB. That is still a massive amount of goo in the system. Ouch!

VISTA SP1

For you folks that make it down to this comment, the VISTA command that you are typing had the number one in the middle of it: Vista Service Pack 1 CLeaN , so you are typing in VSP1CLN. Please ensure you see/type the difference between the number 1 and the letter L.

MS has lost the plot...

The really good software to come out of MS are the ones NOT written by them. Microsoft Security Essentials is one of the best and that was inherited by MS when they bought up the small company that had developed the software. Compared to FOSS developers, MS has a bunch of cretins. I had a 25GB partition for my Win7 install and within 1 month, I have run out of space. The Windows and Winsxs folders account for most of it. Ridiculous !!

9.5 GB to 8.7 GB...woohoo? Not so much...

When I type VSP1CLN the command is not recognized...maybe because I already have SP2?
Anyway, I ran compcln.exe and only got about 900 MB free...what a load! I hate Vista and thankfully this is the computer I have at work. When I go home, I don't have to put up with Vista or any other Microsoft garbage.
My OS is over 17 GB now - that is outrageous.

An OS is supposed to help you get your work done and be out of the way, not take over! OSX works way better and without the need for a third of my HDD space.

I used CompCln and reduced

I used CompCln and reduced the WinSxS folder in my vista system from 23.3GB to 17GB still alot of junk I presume..also found this little explanation..

in a November 29, 2008 post on Microsoft’s MSDN blog,
Michael Beck gave the following definition:
“In practice, nearly every file in the WinSxS directory is a “hard link” to the physical files elsewhere on the system-meaning that the files are not actually in this directory. For instance in the WinSxS there might be a file called advapi32.dll that takes up >700K however what’s being reported is a hard link to the actual file that lives in the Windows\System32, and it will be counted twice (or more) when simply looking at the individual directories from Windows Explorer.” - Taking his explanation a step further, Beck explains that because of this hard linking, Windows Explorer may misreport the actual size of the WinSxS folder.
According to Beck: “The Windows SxS directory represents the “installation and servicing state” of all system components. But in reality it doesn’t actually consume as much disk space as it appears when using the built-in tools (DIR and Explorer) to measure disk space used. “

winsxs

Just a note from the future- it doesn't matter whether these are hard links, soft links or sausage links, or whether the reported size is accurate. If you can't use the disk space, it does not exist.

Windows7 does not solve the problem.
And I would humbly submit that having to run a tool periodically does not solve the problem either, especially if it is reducing a 10 gig winsxs by 1.5 gigs.

It appears that the only solution is a terabyte hard drive, with around a third of it allocated to windows.

Oh! That's good to know! Now,

Oh! That's good to know! Now, how do I add new stuff to the windows reported full-hard drive that really isn't full?

Well then that's another

Well then that's another couple of bugs, they should use symlinks or soft links instead of hard links as linux does for library versioning, and make Explorer only count the file in it's real location in system32 so you can tell how much space it's actually using.

Also it is only some of the files in winsxs that are links to the real version (probably only the latest), there obviously has to be multiple versions of the same file and they can't be in the same directory as they would have the same name.

About 1.5 GB , i reduced

About 1.5 GB , i reduced winsxs By Compcln
total space now 9.17 GB !!!!!

15.2 GB

Vista Home Premium 64 bit with about 1-1/2 months use and the winsxs filder is 15.2 GB. There are multiple folder copies of microsoft-windows-t..krecognition.zh-chs, microsoft-windows-naturallanguage6, microsoft-windows-s..chrecognizerenu.ale, microsoft-windows-mediaplayer-core, microsoft-windows-ime-korean-hwresource and all kinds of other garbage, gigs of wasted space.

I have read all about the winsxs folder, why it is there and what it does and despite all the poor M$ techs trying to justify its existence, reading between the lines, they hate it too and can't say so.

I am stunned, STUNNED, that we have no way of getting rid of all this trash that does nothing but chew up our C: drive space. What a crappy system. It's just M$ screwing consumers yet again.

Ahhhhhh..at last. my computer

Ahhhhhh..at last.
my computer was full....i spent the last 2 days deleting and uninstalling.....everytime i freed up som space it filled up again, it seemed to do so with a vengence, it got so bad i couldn't delete a file...Treesize personal showed that bloody itunes was smthg like 4Gb in the roaming folder despite uninstalling and this winsxs thing was 14Gb....hard drive was partitioned to 33Gb, windows was 20G of that....anyway the compcln saved me 2.5G Cheers!!!

Once I have read and used

Once I have read and used following way to increase system disk drive free space
http://vitana-group.com/article/microsoft-.net/winsxs-folder

real solution

give windows the boot and migrate to linux.................................

dump windows migrate to

dump windows migrate to linux.................

If Linux was as easy and

If Linux was as easy and compatible as Windows, I'd migrate straight away, but it isn't so I don't care until it is. Besides on Windows you worry about the disk space, on Linux you worry about the next driver you've got to text edit yourself.

I'm just saying.

P.S. I have used Linux (Mint, Debian) for years, but at a certain age you no longer want to fix or edit every dumb error that pops up once again when trying to install this or that, you just want it to work, this is why I use Windows. Albeit Windows 7.

2.36 GB free of 29.4 GB => C: Drive

My C: drive has very less free space and sometimes it has no free space

I hav removed Pagefile on C:
I disabled hybernation and deleted related hyber.sys

not a single byte in My Document and Desktop (its empty)

even though c drive is eating around 27 GB of space

7.74 GB (Program Files + Users) folder

please help me out....

@ Arun Gautam

I find my Windows 7 install has more problems than my Fedora 14 install (and Fedora 14 is beta software!!)

Got a 15gb partition on my Virtual 7 Computer (gives less problems than my physical win7 computer) of which 10gb is taken up by winsxs... WTF?

I found this very interesting

I found this very interesting

I was hoping that I was doing

I was hoping that I was doing something wrong on this laptop where the Windows folder alone is over 16Gb. But after reading this thread, I realise that it's not me it's windows.

Going back to using WinXP - temporarily. Our business is going Apple. We have Iphones, IPads, and will start using Mac desktops and laptops.

I am willing to bet that Win7 is the second last major roll-out for a windows operating system. The next will be the last - because no one will buy it. I have an app on my IPhones that you just tap them together and it transfers files between them - works with IPad too. Pity the poor sod that is sitting with a laptop - we have to email it to them.

Apple is the way to go, MS has lost the plot. Why should I have to buy a new computer when MS decide I shouldn't use their last OS anymore. I buy a computer to run programs, not MS Visa or Win7.

Goodbye windows, the only decent piece of software you have produces is MSAccess - and you charge an arm and a leg for that.

Here is a prediction. It is

Here is a prediction.

It is now Novenber 2010. Within 5-years Laptop PC's will be dead technology. IPads and their derivatives from other manufacturers will be the norm.

Just wait for the commercial development of foldable optics, when you can fold your IPad up and put in your pocket.

Bet you also that MS will try and scramble out an IPad competitor soon.

MS have missed the plot, they have almost missed the boat. It I had MS shares I would sell them.

Egad

So the whole population is going to be walking around, squinting at tiny little devices, pushing tiny little buttons with their thumbnails.

OMFG.

Not gonna happen. The iPad

Not gonna happen.

The iPad and equivalent devices are nice for casual web surfing, looking up TV shows on the web and similar activities.

But many of us actually uses our portable computers for productive work and then an iPad just wont cut it. I suggest you try it if you do not believe me.

I suppose there will be addons like bigger screens and external keyboards available, but then it becomes kind of pointless as your basically rebuilding the iPad to a PC anyway.

The iPad (and clones) will take a large chunk out of the laptop market but by no means all of it.

@Astrofs - I'm interested to

@Astrofs - I'm interested to see if your predictions come true, I have no doubt your aren't that far from the mark.

Windows is great

Windows is great. It is easy for Mac to make all its claims. They only support hardware they produce, and charge excessively for. Many pieces of excellent software don't run on mac and those that do come out months after the PC original, e.g. Quake 4. If apple products are so great why are they using saturation advertising to promote them. When was the last day you watched tv without seeing an apple advert. Having said that I hate those "I'm a PC adverts", I'm a human. Microsoft's .net and directX platforms are way ahead of Mac. Windows has lots of problems especially the price, but it is at present better than the competition.

winsxs

Well if you Norton, it will have a disk cleanup. It cleared out 13 gb comparing to my winsxs (19gb) I cleared out 1/3 of my hardrive.

Lawand

norton vs virus

A virus could have done that for you too ;-)

Snortin' Norton

Snortin' Norton is worse than many viruses!

Have you ever had to uninstall this pathetic sumbitch? Its tentacles reach to the far corners of your registry, and are completely immune to its ordinary uninstall process. Of course, Symantec provides a special "Norton Removal Tool", and has for years. Unfortunately, it is buried deeply within their website, far from prying eyes.

To be fair, many other major anti-virus applications are no better.

My winsxs file was eatting

My winsxs file was eatting 19G of space, after using the Compcln.exe command it was reduced to 17G, not a great deal but better than nothing. Thanks for the comments and thanks for Andrew!

wouldn't it be easier to make

wouldn't it be easier to make your batch file use a dir/v and extract the "last accessed" date, if it hasn't been "accessed" for 12 months its possibly safe to remove? a "computer" shouldn't have any problems with such an operation in a batch file the writer of the tool is far smarter than me, do a "dir/v" and pipe and trim the output to a "del" and dump that to a batch file giving you a list of files that havn't been accessed for 12 months with "del" infront of them then once you built the batch file run it deleting all the files that havn't been accessed for 12 months!!!

I hope this makes sense

DISCLAIMER : THIS IS A THEORY NEEDS TO BE TESTED ON NON CRITICAL INSTALLS OKAY

dir c:\windows\winsxs /s /ta

dir c:\windows\winsxs /s /ta >file.txt

this will give you a file with the last accessed date followed by the file path etc.. will recurse subdirs I did this and am seeing alot of .ttf (font) files in this folder, if somebody with more skill than I can remove directories and font .ttf files from this list, I feel this avenue is worth exploring

Hey STOP complaining and buy a bigger hard drive...

The WinSXS folder on my desktop with 500 GB is only 6.3 GB. I have games that take up way more space than that. On my netbook which has a 120 GB hard drive the WinSXS folder is even smaller at 2.8 GB. What the bloody arse are you guys doing with your computer to allow this folder to accumulate 19-21 GB!

-

120-500 Gb? your small systems will be exhausted pretty soon.

Derr. Yeah that would be great

Consider for a moment that other people may be operating under different constraints to you.

Fixed available size, remote cloud hosting etc.

Having to pay for HD space annually rather than just "Buying a bigger drive"

This is possibly one of the stupidest and least helpful comments on the subject I have ever read.

So incensed was I at the sheer blinkeredness of it that I fail I had to flame.

So flame on you sir. This subject wont be going away and it doesnt look like its going to get better.

the dir c:\windows\winsxs /s /ta >file.txt idea had promise...
a list of !!ESSENTIAL NOT TO REMOVE!! items from microsoft would go a long way to weeding out the possible prunings.

I am stuck with 20 Gig and almost 19 Gig of it is now winsxs.

Happy days, here's hoping I dont have to raze it to the ground.
And as for "buy a bigger drive". That's sadly not an option with this package.
Heh. Buy a bigger drive. Classic

Windows 7 alternative to compcln? Buying a bigger hard drive

Is there an alternative for Windows 7?

re: "Hey STOP complaining and buy a bigger hard drive..."
The current price of a 256 GB 1.8" SSD is in the $400 range... All people are asking for is that the OS doesn't keep eating space.

If there was a leak in your boat, your solution is buy a bigger boat instead of fixing the leak. Nice.

Much obliged for this

Much obliged for this information

I am now running the SP3 file

I am now running the SP3 file Compcln.exe. Thank you. I was shocked it was 22 GB and running it reduced it to 18 GB. That is still a massive amount of goo in the system. Ouch!

winsxs ghosts & gobblins

the majority of files found in winsxs are "hard" links to elsewhere &
the duplicates are needed for compatability but vista & most programs
read the "destination" files size AS the hard links file size

please google compcln.exe, vsp1cln.exe, fsutil hardlink,
& DISM /online /Cleanup-Image /SpSuperseded

My Winsxs is 60 GB. (HELP!!!)

I have a vista 32-bit. I have never got SP1 or SP2 from MS. In the past three years, my winsxs grows bigger and bigger. I started to delete more and more programs until only Office is left, and other basic drivers. My hard drive is 69GB. I could not believe my winsxs is 60GB now. I only have 100MB left on C drive. It is too late for me to get SP1 or SP2. If SP1 or SP2 can delete some old file, why can't Microsoft issues some tool for user to handle winsxs manually.
My other option is to clone the C drive to a bigger hard drive. Anyone knows how to do that?
Please help. How could Microsoft let winsxs grow like that? Itself is a cancer!!!

Compcln.exe works perfectly

Thank you guys for this post. It helped me too much.

Feeling like a veteran

Thanks so much for all your helpful comments! I got alarmed today when I realized my 100gb drive now only had 25gb free. Found a folder size analyzer and discovered the winsxs cancer. <- nice term, btw! running my sp3 cleaning tool freed up at least 4gb. I'll take it!
reading other people's stories, the page seriously starts to sound like a windows coping community - shared misery, shared methods to help but mostly just coming together to recognize each other's pain.
hope you are all having a great day! this too shall pass!

How to know folder size

Hi! I posted a little trick to get size of directories or files:
http://runakay.blogspot.com/2012/09/fastest-way-to-know-size-of-files-or...

vista disk full

I used the compcln.exe Gave me over a gigabyte. Not a lot but I was almost at the point that I'd have to buy a new computer or new HD, or a full reinstall or .... Thanks.

Bloated Vista

I have just sent this complaint to a Windows Community site. At least it let's off some steam but I suppose I'll have to go for a re-install as Microsoft are criminally unhelpful.

On my laptop I have Windows Vista that is hogging 22GB of my hard drive (110GB) and I am appalled to Microsoft's attitude to this problem. Advice to delete a few temp files, etc. Or, as an alternative, reinstall the software. They are totally ignoring their responsibility to their customers. Talk about take the money and run!
Are there any plans to solve this problem? Perhaps it's an arm-twisting way of encouraging us to buy subsequent editions of operating software (It eventually gets so bad, and we get so fed up trying for a solution that we just give up and and go along with it)
Some of the postings state that Windows 7 suffers from the same problem; if this is true the engineers designing this software are either idiots or crooks - take your pick.