Running Disk Cleanup hidden

by Mitch Tulloch [Published on 13 Sept. 2011 / Last Updated on 13 Sept. 2011]

How to run the Disk Cleanup utility hidden from the user's view.

Administrators generally like to manage end-user computers without the users seeing or knowing what's being done to their machines as otherwise users might interfere with or even block certain administrative tasks from being performed on their machines. While the Disk Cleanup utility Cleanmgr.exe doesn't itself allow you to run the tool in hidden mode, you can do this by using the Psexec.exe tool which can be downloaded for free from Windows Sysinternals, see http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx. You can use Psexec to run Disk Cleanup in the background using the following command:

Psexec -s -d Cleanmgr.exe

Doing this will run Disk Cleanup on a non-interactive service window desktop that is hidden from the user.

If you have feedback concerning this tip, please email me. And be sure to check out my website!

Featured Links