Nice command to clean-up /Windows Directory
I learned this command from one of my colleagues. The command is incredibly useful for getting some extra space back on your C:\ that stores your system information. The command cleans up Service Pack cache and extra files that aren't valuable after you completed a successful Service Pack update. It is useful on both Client and Server Windows OS. I find it really useful on my laptops that run SSD drives and I want some of that extra drive space back that the system drive takes up.
Open CMD prompt (in elevated mode) and type in this command
Command:
DISM /online /Cleanup-Image /SpSuperseded
In my Engineering Toolkit I named this command: Secret command to clean up WinSXS folder
Comments
- Anonymous
November 06, 2012
Will this also work on post SP updates? [i.e. remove the cache files from updates that came out after SP1 and you're confident that there are no issues]