Disk Cleanup (cleanmgr) won't close at end until the mouse moves

G

GavenRay

I have a scheduled task on my Windows servers to run Disk Cleanup via "cleanmgr /sagerun:1" and it works just fine except it never ends. Eventually it hits the time limit I set in Task Scheduler and its forced close but this seams like a bug. If I run it from the command line in an interactive session, I think I see the problem. Disk Cleanup runs but when the progress bar gets to 100%, it just hangs. Simply moving the mouse gets it to close as it should. I'm thinking this is why it won't end on it's own when run as a scheduled task - there's no mouse to move.

Continue reading...
 
Back
Top Bottom