Have you ever wanted to run disk cleanup on a server but found out it’s not installed?  One way to get it installed is to install the Desktop Experience feature via Server Manager.  While this will install disk cleanup, it also installs other things you don’t necessarily need.  There is a faster way to manually install it if that’s all you’re looking for. Basically, you manually copy 2 files for it from the winsxs folder into the current system folders. Run these commands from an elevated command prompt.

copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe %systemroot%\System32
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui %systemroot%\System32\en-US

Once that’s done, you can run disk cleanup by typing cleanmgr.exe from a command prompt.  It’s that easy.