To cleanup your disks from old files, service packs and tempory internet files Windows 7 has a tool called Disk Cleanup.
By default, this tool is not installed on Windows 2008 R2.
There are two ways to enable this:
- Install the “Desktop Experience” feature.
This will install several Windows 7 features on your Windows 2008 R2 server such as Windows Media Player, Photo Management and the Disk Cleanup Utility.
This is of course something you do not want installed on your server. Also, the server requires a reboot after installing the feature.
- Copy the files from the WINSXS directory.
An easier way of enabling this the cleanup utility is to copy the files from the winsxs directory.
You need two files: cleanmgr.exe and cleanmgr.exe.muiCopy cleanmgr.exe from C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe to %systemroot%\System32
Copy cleanmgr.exe.mui from C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui to %systemroot%\System32\en-US
There you go!