

How to clean up disk in Windows Server 2012 (R2) with cleanmgr command

#Clean disk free
To the servers that never or have not free up disk space for a long time, Server 2012 Disk Cleanup utility may helps you regain several GBs of disk space. My test server is new installed, so I can reclaim little space. Step 2: Simply click Next in the following 4 windows. Step 1: Click Server Manager on bottom left, and then click the 2nd option " Add roles and features".
#Clean disk install
How to install Disk Cleanup in Windows Server 2012 R2: Install Disk Cleanup to Server 2012 (R2) with Desktop ExperienceĪs I said above, you cannot enable Disk Cleanup in Windows Server 2012 R2 by simply copying files, you have to follow the steps below to install Disk Cleanup utility with Desktop Experience. Step 3: Copy, paste and execute the second command: copy C:\Windows\WinSxS\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_.16384_en-us_b6a01752226afbb3\ C:\Windows\System32\en-US\Ģ. Step 2: Copy the command below, paste in the command prompt window and press Enter to execute. Step 1: Press Windows + X together on the keyboard and select Command Prompt (Admin) How to enable Disk Cleanup in Windows Server 2012 without rebooting: If you are not sure about your version, simply press Windows + R together on your keyboard to start Run, type winver and press Enter to check. To Server 2012 R2, this copy method is invalid and you need to install Desktop Experience. You just need to copy two files Cleanmgr.exe and from WinSxS to system directory.

Add/Enable Disk Cleanup in Server 2012 without reboot I'll introduce both methods to enable Disk Cleanup in Windows Server 2012 (R2) one by one, select the one that fits for your needs. By installing Desktop Experience feature, Disk Cleanup is fully functional, but it requires reboot to complete installing. Furthermore, many other unnecessary components will be installed on the server together with Desktop Experience, such as: It is easy and fast by copying files to specific folder, but in some environment Disk Cleanup doesn't work. There are two options to enable Disk Cleanup in Server 2012 (R2): copy files from WinSxS and install with Desktop Experience feature. How to install/enable Disk Cleanup in Windows Server 2012 R2 Make sure you typed the name correctly, and then try again.īefore cleaning up disk space on C drive in Windows Server 2012 (R2), you must install or enable this utility by yourself. This is the reason why some people feedback that Disk Cleanup is missing in Server 2012 (R2), or receive error: Windows cannot find 'cleanmgr'. There's no need to fight for 1GB more free space but put server in danger.Īs I said in the beginning, Disk Cleanup in Server 2012 (R2) is not activated by default. There are third party optimization programs, but the native cleanup utility is safe and powerful enough. To clean up C drive in Server 2012 (R2), the native Disk Cleanup utility is the first choice, because it is easy, fast and able to delete most common types of junk files safely. To do this, Microsoft provides native Disk Cleanup utility, which can be run via cleanmgr command or with GUI wizard. One of the solution is cleaning up C drive, delete unnecessary and junk files to reclaim disk space. The same with other versions, Windows Server 2012 system C: drive is getting full after running the server for a period of time. About Windows Server 2012 Disk Cleanup utility
