Windows 2008 Task Scheduler doesn’t show cmd window when task executes

task-schedulerwindows-server-2008

When I schedule a task to execute using the Windows 2008 Task Scheduler, it always executes behind the scenes and I am unable to see the output of it. Generally I execute a bunch of .bat files and I'm used to seeing the cmd window pop up when the scheduler kicks it off. This makes debugging much easier.

I tried redirecting the output to a file, but I found only the output of the .bat file there, not of the program that the .bat file kicked off, which is by far the more interesting output.

I would prefer being able to see the cmd window as it executes, but if I could solve this problem by getting the subject program output to a log file, I would still be delighted.

Best Answer

you have two options for running this task one is if somebodies logged in and one is run whether somebodys logged in or not. I'd just switch the task to must be logged in for debugging then switch it back to the later for normal use.