The Disk Cleanup executable file cleanmgr.exe and the associated Disk Cleanup button are not present in Windows Server® 2008 or in Windows Server® 2008 R2 by default.
This is by design, as the Disk Cleanup button is part of the Desktop Experience feature. In order to have Disk Cleanup button appear on a disk’s Properties dialog, you will need to install the Desktop Experience feature.
So in order to use cleanmgr.exe you’ll need to copy two files that are already present on the server, cleanmgr.exe and cleanmgr.exe.mui. Use the following table to locate the files for your operating system.
Once you’ve located the files move them to the following locations:
1. Cleanmgr.exe should go in %systemroot%\System32.
- · You can now launch the Disk cleanup tool by running Cleanmgr.exe from the command prompt.
· Disk Cleanup can now be run by entering Cleanmgr.exe into a command prompt, or
by clicking Start and typing Cleanmgr into the Search bar.
Happy Learning !!!