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”
Serverfault discussion of the error here.
Currently supported Operating Systems:
- Windows Server 2008 x86
- Windows Server 2008 x64
- Windows Server 2008 R2
- Windows Server 2012
Note: If you are unsure of the code, just open the batch file in notepad.
Microsoft KB 2852386 is required if the script doesn’t work.
– Cleaning of code
– W2012 Fix
– Mixed printout messages