How to use SCHTASKS in DOS to run a task when user is not logged on
Posted on 2009-07-05
I have successfully created a task in DOS to run in the Windows Server 2008 Task Scheduler, using the DOS SCHTASKS command and syntax.
The task runs successfully, but only if I as Administrator am logged in.
If I am not logged in, the task does not run. Even if I go into Task Scheduler and tell the task to run at the scheduled time whether I am logged in or not, the task does not run.
My guess is that once the task is created in DOS, you cannot edit it in the Task Scheduler without breaking it.
Is there a syntax in DOS that will, upon creating the task, allow the task to run whether the user is logged in or not?