Disk Cleanup Failed in Computers with Windows 2008 and Windows 2008 R2 Operating Systems

Problem

You cannot complete the task to cleanup disks, in computers with the Windows 2008, Windows 2008 R2 operating systems, using the System Tools feature in Desktop Central. The error message that you see on the screen is, 'Disk cleanup failed'.

Cause

The Disk Cleanup button is part of the Desktop Experience feature. The Disk Cleanup executable file cleanmgr.exe and the associated Disk Cleanup button are not available in computers with the operating systems Windows Server 2008 and Windows Server 2008 R2, by default. In order to enable the Disk Cleanup button in a disk's Properties page, you are required to install the Desktop Experience feature.

Resolution

You are required to install the Disk Cleanup executable file in the computers with the operating systems Windows Server 2008 and Windows Server 2008 R2. You are also required to copy the required files before using the Disk Cleanup feature.

Installing the Disk Cleanup Feature

To install the Disk Cleanup feature, follow the steps given below:

  1. Click start>Administrative Tools
  2. Click Server Manager
  3. Select Add feature
  4. Select Desktop Experience

You have installed the Desktop Experience feature. The next step includes copying the required files before running the Disk Cleanup feature.

Copying Required Files

To use cleanmgr.exe you are required to copy the following two files that are present in the server:

  • cleanmgr.exe
  • cleanmgr.exe.mui

Use the following table to locate the files for your operating system:

Operating System

Architecture

File Location

Windows Server 2008 R2

64-bit

C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe

Windows Server 2008 R2

64-bit

C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui

Windows Server 2008

64-bit

C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.0.6001.18000_en-us_b9f50b71510436f2\cleanmgr.exe.mui

Windows Server 2008

64-bit

C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.0.6001.18000_none_c962d1e515e94269\cleanmgr.exe.mui

Windows Server 2008

32-bit

C:\Windows\winsxs\x86_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.0.6001.18000_enus_5dd66fed98a6c5bc\cleanmgr.exe.mui

Windows Server 2008

32-bit

C:\Windows\winsxs\x86_microsoft-windows-cleanmgr_31bf3856ad364e35_6.0.6001.18000

Once you have located the files move them to the following locations:

  • cleanmgr.exe to %systemroot%\System32
  • cleanmgr.exe.mui to %systemroot%\System32\en-US

You can now run the cleanup feature without any issues.

References

http://technet.microsoft.com/en-us/library/ff630161(WS.10).aspx

HeadingX