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 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!

See Also

The Author — Mitch Tulloch

Mitch Tulloch is a well-known expert on Windows Server administration and cloud computing technologies. He has published over a thousand articles on information technology topics and has written, contributed to or been series editor for over 50 books.

Featured Links