WinSXS Folder Cleanup For Windows Vista & Windows 7

WinSXS Folder cleanup is an issue which creates problem for a lot of user all around. Growing size of WinSXS folder has become a big problem for a lot of Microsoft Windows user around the world who are using Windows 7, Vista or 2008 server edition of Windows. If you are using a low capacity SSD drive or Virtual machine for above mentioned OS, you will be severely affected by growing size of WinSXS folder because of limited space available for you.

WinSXS Folder Cleanup

WinSXS Folder Cleanup


WinSXS folder on Windows 7 / Vista / Server 2008 is one important folder and it keeps shadow copy of all your important system files, which gets changed during any installation of Patches or Updates or software. It will store a backup copy of all those system files which are changed by installation program so that it can restore them back in case something bad happens due to patch or Installation or you want to completely remove the patch. In earlier version of Windows this facility was available but not all system files were reverted to original state. With the use of WinSXS Folder all system files can be reverted back to the stage where it was before installation of Patch/ Update.

This is really a great feature but for users who got limited space this great feature is becoming worst nightmare as with everyday new updates/ patch keep coming and WinSXS folder increases to 10-15 GB in size within a short period of time. There are few Built in tool in Vista Sp1 & SP2 which can clean up some files from WinSXS folder but they will make the patch installation permanent, which means you will not be able to uninstall the patches after using these tools.

Well Now question does I can simply remove the files in WinSXS folder like I delete any other file, well that’s a viable option but is not recommended, I tried it once on my Vista Installation, it did not harm anything and after deletion my windows was working fine except one thing I cannot install any Patch/ Update after that. Whenever I try to do that I simply get an error that some important system file missing and installation cannot proceed. So I recovered about 14 GB space but in return I left with no patch support.

Microsoft did not thought about this problem because now the days TB of space is available in less than 100$ which makes them think to use it and provide a user experience which will be good and robust. They did not think about SSD and Virtual machine usages. Anyway coming back to cleanup tools Vista SP1 has this small utility called “vsp1cln.exe”, to use this simply go to Run and type “VSP1CLN” and hit enter.

Once run it will purge all unnecessary files created by Vista Sp1 and recovers about 3-5 GB of space from WinSXS folder. For Vista SP2 user there is similar tool called “COMPCLN.EXE”, This small utility can be run in similar manner as mentioned above and will recover another 3 GB of space for you depending upon on your installation and components you have.

These utility was about Windows Vista and we have not found anything similar for Windows 7 as of now, so if you looking to recover space in Windows 7 probably you have to wait till Microsoft announces some utility to address this problem.



9 comments to WinSXS Folder Cleanup For Windows Vista & Windows 7

  • Thomas

    To do the same in Win7, just type in command prompt:

    DISM /online /Cleanup-Image /SpSuperseded

    This will clean up WinSXS, but you cannot uninstall SP1..

  • Adesh Pandey

    Run command prompt as administrator and input this command
    DISM /online /Cleanup-Image /SpSuperseded
    its just amazing

  • Vin7Guru

    Isn’t it easy? Just copy all folders in winsxs older than 6months to your secondary HDD, and copy back before you patch anything or update drivers?
    Ok its not ideal, but it only takes a minute or 2…

  • Dr. Hani Mahdi

    It is really helpful. Specially, the comment for Vista SP2. What I gain about 1.14 GB through it. WinSxS still has a large size (11.2 GB, this is about 25% of the total C:\ Size)!

  • Meh

    Simple solution install Linux, problem solved!

  • aaa

    DISM /online /Cleanup-Image /SpSuperseded

    I did this, nothing was deleted! Just FYI – i’ve got SP1, and i’m with W7

  • aaa

    Used tools described above for windows vista SP2. winsxs has grown to become a staggering 21.2Gb. After running COMPCLN.exe, the size has become 21.0 Gb. Not very helpful. I’ve got still files in this directory from 2006. Amazing architecture; who came with such a stupid idea to keep running data/files in the backup environment of the OS -> Billy.

  • Joe

    @Meh +1
    I think that Linux is the right answer.
    But Linux have also it’s own problems. Wine is 500Mb big. Last time I installed wine the packages were less than 50mb big. Also The new gnome interface is crap. Luckily there is MATE and Cinnamon but they are still very buggy.

  • if your looking for a way to reduce the sizeof a winsxs folder, theres a pretty short explenation here: though it will only work after installing a service pack on your windows 7 machine.

Leave a Reply