Query the results of W2K scheduled tasks

Posted on 2007-03-19
Medium Priority
Last Modified: 2008-01-09
I am looking for a way to query the results of a number of scheduled tasks. There are three essentials scheduled tasks on one of our servers, and I am building a way for us to easily monitor these. My end goal is to use the mailsend.exe program to automatically email us the results of these scheduled tasks (ie, mailsend.exe will be a scheduled task).

Therefore I need to know how to query the results of these scheduled tasks. There is a program called Log Parser that would work perfectly if I could find out how to create a "scheduled task audit policy" or something like that in MMC.
Question by:firstbankak
  • 2
LVL 38

Accepted Solution

Shift-3 earned 2000 total points
ID: 18753374
The Scheduled Tasks logfile is located at %systemroot%\SchedLgU.Txt.  You should be able to pull results out of it by searching on the names of the tasks.

Author Comment

ID: 18757340
Shift-3, that is interesting, I haven't seen that file before. Is there a way a batch file can search through this. Sort of like grep on linux?
LVL 38

Expert Comment

ID: 18760130
Yes, though it is tricky since the status messages and the names of the tasks appear on different lines.  This script looks like it might work:

Expert Comment

ID: 20294394
Forced accept.

EE Admin

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

This tutorial shows a simple method of resetting a forgotten Windows 10 Password, on both a Physical and VM VirtualBox machine without the need for any third-party tools. Both Local and Microsoft Connected accounts are covered. Enjoy...
Seizing the Operation Master Roles in Windows Server 2016 in case of FSMO holder failure.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

586 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