Automating Disk Cleanup Tool in Windows - Microsoft Support, This article describes how to run the Disk Cleanup tool (Cleanmgr.exe) by using command-line switches. Cleanmgr.exe is designed to clear ...