Sometimes it is convenient to cleanup some disk space by deleting unneeded files like service pack files, the temporary folder an so on. On Windows 7 workstation, you have the Disk Cleanup Utility to do this:
By default, this tool is not enabled on Windows Server 2008 R2. To enable it, there are two possibilities:
- (Not recommended) Install the Desktop Experience feature. I don’t recommend this as installing the Desktop Experience feature will not only install Disk Cleanup, but a lot of other utilities you likely don't need on a server (sound recorder, desktop themes, etc). Also, installing the Desktop Experience feature will require a reboot of your server.
- (Recommended) Copy 2 files to specific system folders and you can immediately use the tool:
Copy Cleanmgr.exe to %systemroot%\System32.
Copy Cleanmgr.exe.mui to %systemroot%\System32\en-US.
The 2 files are located in
You can then start the tool by executing Cleanmgr.exe
Update: John highlighted in the comments:
If "Windows Update Cleanup" is missing from the cleanup tool then you will also need the following KB installed if not already done so - https://support.microsoft.com/en-gb/kb/2852386
This will allow you to cleanup the WinSXS folder of any superseeded updates.