Windows Task Scheduler and possible permission problems

Posted on

Problem :

I use NirCmd ( to enable me to run commands such as “power off the monitor”, “mute system volume” from the command-line (and I highly recommend it, BTW). My OS is Windows Vista.

I want to use it to power off my monitor in a certain time. So I’m using Windows Task Scheduler’s CLI shortcut, “at”:

at 00:30 "nircmd monitor off"

The task indeed gets created (it shows up in “control schedtasks”). But it doesn’t have the desired effect. I must say, running just “nircmd monitor off” indeed powers the monitor off (I disabled my UAC, so everything I run from the Run window or any prompt is elevated).

So, my first guess is that it’s not running nircmd with elevated privileges. How do I solve this?

Also, I tried two simple tests to make sure the “at” command works as expected:

at 13:21 calc
at 13:22 /interactive calc

The calculator doesn’t show up in any of them, but if I go to Task Manager and list the processess of all users, it indeed is there, started by the user “SYSTEM”.

So, any tips on how to approach this situation would be useful.

Solution :

I see the following dialog when creating a new task (note: I chose “new task” rather than “new basic task”). I would suggest running it whether or not the user is logged on, and with the highest privileges (you might also need to choose a different account with which to run the command if your account is not an administrator). Does this work for you, or did you already have these settings selected?