As you may already know, in order to enable Disk Cleanup on Windows Server 2008 R2, you have to install one of the Microsoft Updates, KB2852386.
This can help you if you are running out of space on C: drive, and you want to free up some space. With Disk Cleanup, you can remove old update files etc.
After you install this Windows Update, you have to reboot the server unfortunately. After reboot, go and verify that the update has actually been installed:
Now, in order to use Disk Cleanup, you need to copy two files which are now present on server.
These files are called:
The location where these files are stored is (I am doing this on Windows Server 2008 R2 64-bit):
After you have located these two files, copy the selected files to:
Cleanmgr.exe to C:\Windows\System32 folder and
Cleanmgr.exe.mui to C:\Windows\System32\en-US folder.
Now, open Command Prompt and just type: Cleanmgr.exe and that is it. But be careful, as usual 🙂