Missing disk cleanup utility in Windows Server “Fix”.

Missing disk cleanup utility in Windows Server “Fix”

Microsoft has for some reason left Disk Cleanup utility as a Desktop Experience component in the previous Windows Server 20xx editions which has made quite a few of us sad, me included. Made a quick script to make my life quite a lot easier as the files are available but not just in the right place. This simple fix will copy the disk cleanup required files to the correct location. There’s no need to install the Desktop Experience package to the server, there are no required DLL’s included or any registry edits.

Windows Server 2012R2 doesn’t work at the moment due to incompatibility with 16-bit applications. “Unsupported 16-Bit Application: The Program or feature “??\c:\windows\system32\cleanmgr.exe” cannot start or run due to incompatibility with 64-bit version of windows”

Cheers for the script.
Unfortunately, this does not seem to work yet for 2012R2.

When I found the proper locations for the mui and exe, added these to the script, ran the script succesfully but then the error appears that “these versions are not supported”.
Even when copying the exe and mui from my 2012R2 terminal server with Desktop Experience installed, where disk cleanup works fine, Disk Cleanup runs but does not find any “old windows installations (windows.old)” or windows updates cleanup.

Bummer!

ps: you made a minor mistake in echoing the “copying mui” while copying the exe and vice versa ;)

I tried it on Server 2012 fully patched to date and it has a couple of problems

Firstly the echo commands are the wrong way round. Secondly the location of cleanmgr.exe.mui appears to have moved to
C:\Windows\WinSxS\x86_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.2.9200.16384_en-us_5a817bce6a0d8a7d\

Finally and this is the kicker for soe reason the additional functionality to clean the system areas such as WinSxS does not appear unless I have installed “Desktop Experience” Any hints?

Your email address will not be published. Required fields are marked *

Comment

Name *

Email *

Website

A friendly message

We here at this site like anything technological, and we like to share back to the community for free! We do have ads on the side only on blog posts, but as most people use ad-block (and for a good reason) it doesn't generate much for us. If you like what you see on this site or perhaps it was helpful, please do consider donating. It will be well spent on beer to keep the sysadmins running!