How to cleanup the winsxs folder on Windows 7 (SP1)/ Windows 2008 / Windows 2008 R2 (SP1)
The winsxs folder in c:\windows can be really big, the only way to cleanup is using the microsoft command line tools :
Windows Server 2003 : VSP1CLEAN.exe
Windows Server 2008 : COMPCLN.exe
Windows 7 and Server 2008 R2 : DISM.exe
I will explain the last one here. Start you’re command prompt As Administrator.
Usage: dism /online /cleanup-image /spsuperseded
Note:
After running this command it won’t be possible to uninstall any service packs!
So almost 3Gb on my Windows 7 Sp1 machine is released.
You can also run these commands :
Takeown /f %windir%\winsxs\ManifestCache\*
Icacls %windir%\winsxs\ManifestCache\* /GRANT administrators:F
Del /q %windir%\winsxs\ManifestCache\*
In my case this cleanup another 500Mb
Tagged with: Windows 2008 • windows 2008 r2 • Windows 7 • Windows Server 2008 • Windows Server 2008 R2
If you enjoyed this article, please consider sharing it! Share the knowledge
4 Responses to How to cleanup the winsxs folder on Windows 7 (SP1)/ Windows 2008 / Windows 2008 R2 (SP1)
Leave a Reply Cancel reply
Tags
Active Directory Bitlocker Citrix Clustering CSV DPM 2010 Exact Exchange 2010 Fail FRS Hyper-V IIS NLB Office Powershell Registry Replication SCCM Sharepoint SOI SP1 SSL Synergy Task Sequence TerminalServer Tweaks Upgrade Windows 7 Windows 2003 Windows 2008 windows 2008 r2 Windows Server 2008 Windows Server 2008 R2My Last Tweets




it is very good actually is excellent since it is simple and straight forward ….
appreciate your help
Thanks a lot for this! Gave me another 3+ GB of free space which I desperately needed
Dank U wel. I have never seen the Del /q command used before to help clean winsxs. Saved me a very needed GB.
Graag gedaan