Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have noticed that tasks run via the "Task Scheduler" in Windows 2008 run much slower than when run from the command line. I even tried upping the priority of the task (export task to XML -> change priority -> import task to the task scheduler), but that did not seem to help.

Is this by design? Is there any way to make sure that the tasks run via the Task Scheduler get all the resources at about the same priority as the tasks run via the command-line?

share|improve this question
    
I can't say I've noticed this, but I do notice a delay to the start of a scheduled task, by a few seconds. –  user3463 Oct 16 '09 at 13:33

2 Answers 2

Windows will give the user interface priority, which is why something run direct from the command prompt might run more quickly.

Have you added some timings to your task to prove this?

Also is it that important that the task completes by a certain time?

share|improve this answer

Windows does not give the user interface priority. What it does is to give the current foreground application a priority boost. This makes it seem more responsive, and is basically a trick to make your system feel more responsive than it is. All other processes normally run with normal priority. This applies to all versions of Windows since just about forever (Windows NT 4 if I recall correctly).

As such, this is by design. Tasks run via the Task Scheduler do get CPU and other resources at about the same priority as tasks run from anywhere else. The only difference is that tasks from Task Scheduler can't usually become the foreground program, and hence never get the priority boost. This is usually not a problem, because you are not normally sitting there waiting for the result from a scheduled task.

On the other hand, if running the task from the command line does what you want, then do that.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.