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!

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see .

Latest Contributions

Featured Links