How-To Geek
Add Disk Cleanup in Server 2008
Keeping your hard drive clutter-free is essential to having a well run server. The tool to accomplish this is Disk Cleanup, but it is conspicuously missing in Server 2008… or is it?
To enable Disk Cleanup, we’ll first open Server Manager by clicking on the Server Manager icon next to the Start button.

In Server Manager, scroll down to the Features section and click on Add Features in the upper right area.


The Disk Cleanup tool is bundled into the Desktop Experience Feature, so we’ll check to install that.


We haven’t previously added the Ink and Handwriting Services, so we get a popup window informing us that they are required in order to install Desktop Experience. We’ll click on Add Required Features to proceed.


Next we’ll click the Install button and be on our way.


Once the features have been installed, the system will need a reboot in order for the changes to take effect.


After the reboot is complete, we can find the Disk Cleanup tool in Accessories | System Tools


We’re not sure why Microsoft decided to omit Disk Cleanup from Server 2008 by default, but at least it’s pretty easy to add back into the tools. Next we take a look at scheduling a disk cleanup.
Got Feedback? Join the discussion at discuss.howtogeek.com
Comments (8)
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 01/26/10




thanks
It is a great instruction and helps me a lot. Thanks very much!
Thanks! This helped me a lot.
Great instruction. THanks so much.
Thanks…
Thanks for writing this. Does anyone else wonder why these features are so hard-to-find? SMH.
Does it not seem strange that a tool that many admins consider essential to run, especially after a fresh install is not available by default? And is it not doubly strange that in order to get this tiny disk cleaning tool you have to add a bunch of unrelated programs and services to the drive you are trying to clean? And even worse, these added programs and services really have no business on most servers.
There are only two files you need to run disk clean up. After adding the Desktop Experience crud, copy the two files to a safe place then remove Desktop Experience. Afterwards, restore the two files where they belong. Run these commands to save the files:
if not exist c:\myfolder md c:\myfolder
copy %windir%\System32\cleanmgr.exe c:\myfolder
copy %windir%\System32\en-US\cleanmgr.exe.mui c:\myfolder
Run these commands to restore them:
copy c:\myfolder\cleanmgr.exe %windir%\System32
copy c:\myfolder \cleanmgr.exe.mui %windir%\System32\en-US
Excellent post, thanks a lot