General - Knowledge base

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

References

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

Applies to: Cleaning Disks, Windows 2008, Windows 2008R2

Keywords: Disk-cleanup failure, Installing the disk cleanup feature, Desktop Experience

Unable to resolve this issue?
If you feel this KB article is incomplete or does not contain the information required to help you resolve your issue, upload the required logs, fill up and submit the form given below. Include details of the issue along with your correct e-mail ID and phone number. Our support team will contact you shortly and give you priority assistance and a resolution for the issue you are facing.


 * Mandatory Fields

Other KB articles 24/5 Support

Support will be available 24hrs a day and five days a week (Monday through Friday), excluding USA & India public holidays.

Tel : +1-888-720-9500
Email : desktopcentral-support@manageengine.com

Speak to us

  • Join the Desktop Central Community, to get instant answers for your queries, register with our Forum.
  • Look out for the latest happenings in Desktop Management, follow our Tweets on Twitter.
  • Get to know the latest updates and Best Practices in Desktop Management through our Blog.
HeadingX

Desktop & Mobile Device Management Software trusted by