?
Solved

Task Scheduler logs in Windows 2008 server

Posted on 2012-09-03
6
Medium Priority
?
3,215 Views
Last Modified: 2012-09-08
I have some jobs set up to run in the task scheduler on a Windows 2008 server.  While they seem to run okay, I am having trouble finding the log files for the individual runs.  Most help text I find say look at the "Scheduled Tasks" folder by clicking on advanced.  But, I don't find a Scheduled Tasks in the control panel on the Windows 2008 server.  It seems like this advice applies to XP systems.  So, I am looking to inspect the logs from these runs.

Any assistance appreciated.
0
Comment
Question by:markdolar
  • 3
  • 3
6 Comments
 
LVL 8

Expert Comment

by:RGRodgers
ID: 38362286
You could find it here: Control Panel -> Administrative Tools -> Task Scheduler

Or under: Control Panel -> Administrative Tools -> Computer Management

http://www.hosting.com/support/windows-server-2008/create-a-scheduled-task-in-windows-server-2008

...RG
0
 

Author Comment

by:markdolar
ID: 38363867
Sorry, but that is not what I am looking for.  I've already created the job, run it and verified the results are correct.   My job runs a .BAT file in Powershell; this should generate some processing output - command responses, prompts and the like.   When I run the bat file interactively it does this, even running it on demand through task scheduler.

When the job is run on a schedule, where is this  processing output going?  I would assume it is being written to a log file somewhere on the system.  Where is it and how can I see it?
0
 
LVL 8

Expert Comment

by:RGRodgers
ID: 38366192
Understood.  Okay, is Task History disabled or have you enabled it?  In the Task Scheduler, on the righthand side, there is an Action panel.  You should click on "enable task history".  Does that give you what you need?  

Oddly, I had Scheduled Tasks in my Control Panel under Windows 7 until I started working on this.  It has since disappeared.  I assume that that selection Task Scheduler switched me to the alternative view and scheduler.

...RG
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:markdolar
ID: 38373606
Hi

Task histories are enabled and were previously.   When I check the task history, I see a job entry that gives my system level information about the job - what account it was run under, taskname, stuff like that.  Useful information, but not what I am looking for.

What I would like to see is an application level log.  For example, my task uses powershell.  If I don't schedule the job and just run it in the right hand Action panel, the powershell window opens up and I see the information being generated by the commands I am executing.  When I schedule the job, it runs, but I don't see this information anywhere.  That is the info I am looking for.  Thanks
0
 
LVL 8

Accepted Solution

by:
RGRodgers earned 2000 total points
ID: 38373831
Okay, I thought that you might be looking for the task output instead of the task scheduler output.  To get that, you should build your task to pipe its output to your desired log file.  There are any number of examples of that on the web.

For example, for PowerShell, you can refer here:
http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/32952fdf-b3b8-44f9-a3c4-62bd802b1f39

The handling of each application log would be specific to that application, of course.

...RG
0
 

Author Closing Comment

by:markdolar
ID: 38380148
Correct answer...wish there was a better one (like Windows automatically creates a log file)
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
In this tutorial, we’re going to learn how to convert Youtube to mp3 for Free. We'll show you how easy it is to make an mp3 from your video clips so that you can enjoy them offline.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question