Published on February 2nd, 2013 | by Kyith4
How to clean up WinSXS directory that is growing too big!
WinSXS is a directory under current Microsoft Windows installation. It is used to housed services packs and other update files should your installation needs to be restored.
However it can become really big. Is there a way to clean this up?
You can run DISM.exe utility to clean this up.
In fact different version of Windows can run this:
- Windows Server 2003: VSP1CLEAN.exe
- Windows Server 2008: COMPCLN.exe
- Windows 7 and Server 2008 R2: DISM.exe
To do this:
- Start your command prompt as Administrator
- Type: dism /online /cleanup-image /spsuperseded
You will realise that this thing can run for some time, and when you monitor your hard disk space it actually goes down!
Do note that when you see the progress bar reach 100% its not over yet.
Only when its returned to the system32 directory is it completed.
I had only 7.61GB free and this frees up to 10.3GB, which is around 2.7 GB.
Do note that after you do this you cannot roll back to before you install the service pack.