Free some diskspace after SP1 install under Win7 or Win2008 R2
If you want to Free some diskspace after SP1 install under Win7 or Win2008 R2 from your Windows installation then all you have to do is entering following command line commands into your admin command shell(cmd.exe – Run as Administrator):
dism /online /cleanup-image /spsuperseded
Some notes, features and more command line switches about DISK you can read in this Microsoft article: Microsoft DISM Command manpage
About DISM used in this article:
DISM is a Command to the service operating system packages that can be used to install, upgrade or remove packages under Microsoft Windows in offline mode. Packages are used by Microsoft to distribute software updates, service packs, and language packs. Packages can also contain Windows features. You can also use these maintenance command to enable or disable Windows features (either offline or for a running Windows installation). Features are optional components of the core operating system.
The command line switches as mentioned before in this article will do following:
the command line switch /online: Tells the tool to run the task on the current Operating System
the command line switch /cleanup-image: Performs cleanup or recovery operations.
the command line switch /spsuperseded: Reclaims the disk space by removing the backup files that have been created by MS-Installers during installation.