Using Disk Cleanup on Windows Server (2024)

  • Article

Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2

The Disk Cleanup tool clears unnecessary files in a Windows Server environment. This tool is available by default on Windows Server 2019 and Windows Server 2016, but you might have to take a few manual steps to enable it on earlier versions of Windows Server.

To start the Disk Cleanup tool, either run the Cleanmgr.exe file, or select Start > Windows Administrative Tools > Disk Cleanup.

You can also run Disk Cleanup by using the cleanmgr Windows command, and use command-line options to direct Disk Cleanup to clean certain files.

Note

If you're just looking to free up disk space, consider using Azure File Sync with cloud tiering enabled. This method lets you cache your most frequently accessed files locally and tier your least frequently accessed files to the cloud, saving local storage space while maintaining performance. For more information, see Planning for an Azure File Sync deployment.

Enable Disk Cleanup on previous versions of Windows Server

The Disk Cleanup tool (cleanmgr.exe) isn't present by default prior to versions of Windows Server 2016 unless you have the Desktop Experience feature installed. Follow these steps to use the Add Roles and Features Wizard to install the Desktop Experience:

  1. If Server Manager is already open, go to the next step. If Server Manager isn't open yet, launch it by doing one of the following options.

    • On the Windows desktop, select Server Manager in the Windows taskbar.

    • On the Windows Start menu, select the Server Manager tile.

  2. On the Manage menu, select Add Roles and Features.

  3. On the Before you begin page, verify that your destination server and network environment are prepared for the feature that you want to install. Select Next.

  4. On the Select installation type page, select Role-based or feature-based installation to install all parts features on a single server. Select Next.

  5. On the Select destination server page, select a server from the server pool, or select an offline VHD. Select Next.

  6. On the Select server roles page, select Next.

  7. On the Select features page, select User Interface and Infrastructure, and then select Desktop Experience.

  8. In Add features that are required for Desktop Experience?, select Add Features.

  9. Finish the installation, and then reboot the system.

  10. Verify that the Disk Cleanup button appears in the Properties dialog box.

    Using Disk Cleanup on Windows Server (1)

Manually add Disk Cleanup to Windows Server 2008 R2

To use cleanmgr.exe, install the Desktop Experience as described earlier, or copy the two files that are already present on the server, cleanmgr.exe and cleanmgr.exe.mui. Use the following table to locate the files for your operating system.

Operating SystemArchitectureFile Location
Windows Server 2008 R264-bitC:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe
Windows Server 2008 R264-bitC:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui

Locate cleanmgr.exe and move the file to %systemroot%\System32.

Locate cleanmgr.exe.mui and move the files to %systemroot%\System32\en-US.

You can launch the Disk Cleanup tool by running Cleanmgr.exe from a Command Prompt window, or by selecting Start and entering Cleanmgr in the search field.

To set up the Disk Cleanup button to appear on a disk's Properties dialog, you need to install the Desktop Experience feature, as shown in the previous section.

Using Disk Cleanup on Windows Server (2024)
Top Articles
¿Qué son los impactos sociales, económicos y ambientales?
Consigue TRABAJO EN ALEMANIA con esta guía paso a paso
St Thomas Usvi Craigslist
Chambersburg star athlete JJ Kelly makes his college decision, and he’s going DI
Cad Calls Meriden Ct
9192464227
Mcoc Immunity Chart July 2022
Best Private Elementary Schools In Virginia
The Many Faces of the Craigslist Killer
Lqse-2Hdc-D
4Chan Louisville
Slag bij Plataeae tussen de Grieken en de Perzen
Belle Delphine Boobs
How To Cut Eelgrass Grounded
50 Shades Darker Movie 123Movies
Wausau Obits Legacy
Ukc Message Board
Ppm Claims Amynta
Baja Boats For Sale On Craigslist
yuba-sutter apartments / housing for rent - craigslist
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Sunset Time November 5 2022
15 Primewire Alternatives for Viewing Free Streams (2024)
Renfield Showtimes Near Paragon Theaters - Coral Square
Black Lion Backpack And Glider Voucher
Kaliii - Area Codes Lyrics
How rich were the McCallisters in 'Home Alone'? Family's income unveiled
Ancestors The Humankind Odyssey Wikia
Wbli Playlist
Weekly Math Review Q4 3
Lake Dunson Robertson Funeral Home Lagrange Georgia Obituary
Ni Hao Kai Lan Rule 34
Craigslist Red Wing Mn
Pepsi Collaboration
Temu Y2K
Worcester County Circuit Court
Lake Andes Buy Sell Trade
Lake Kingdom Moon 31
O'reilly's Palmyra Missouri
Cnp Tx Venmo
Acts 16 Nkjv
Joey Gentile Lpsg
Shipping Container Storage Containers 40'HCs - general for sale - by dealer - craigslist
Fedex Passport Locations Near Me
Mynord
Professors Helpers Abbreviation
Mytmoclaim Tracking
Sitka Alaska Craigslist
Craigslist Sarasota Free Stuff
Wvu Workday
How To Connect To Rutgers Wifi
Att Corporate Store Location
Latest Posts
Article information

Author: Rubie Ullrich

Last Updated:

Views: 5857

Rating: 4.1 / 5 (52 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Rubie Ullrich

Birthday: 1998-02-02

Address: 743 Stoltenberg Center, Genovevaville, NJ 59925-3119

Phone: +2202978377583

Job: Administration Engineer

Hobby: Surfing, Sailing, Listening to music, Web surfing, Kitesurfing, Geocaching, Backpacking

Introduction: My name is Rubie Ullrich, I am a enthusiastic, perfect, tender, vivacious, talented, famous, delightful person who loves writing and wants to share my knowledge and understanding with you.