Dear Team,
Please help me to log failed scheduled task in Event viewer Windows 2003
thanks
Makrand
- Follow via:
- RSS
- Email Alert
Question
0
Votes
Answers (3)
0
Votes
Task scheduler should have its own log
Open the scheduler, and look under the Advanced menu item. There is a log, and you can set it to notify you as well.
Do you get any errors while creating the task?
Do you get any errors while creating the task?
27th Apr 2009
Replies
Thanks for initial help
where misssed task will get stored or can we see that Event viewer
where misssed task will get stored or can we see that Event viewer
makrand_n123@...
27th Apr 2009
I don't think you can get it to show in event viewer, unless it shows as an audit failure.
In application log, it will show that the scheduler has started, but I don't think you'll get a failure entry for the application the scheduler is supposed to start.
Scheduled Tasks > Advanced > Show log
Lists specific failure codes & reasons
In application log, it will show that the scheduler has started, but I don't think you'll get a failure entry for the application the scheduler is supposed to start.
Scheduled Tasks > Advanced > Show log
Lists specific failure codes & reasons
seanferd
27th Apr 2009
0
Votes
What kind of task?
Are you running your own script or an executable that generates an exit code? Run it via a batch file and use %errorlevel% to check for a failure and use eventcreate.exe to make your own event log entry.
Regards,
Scott
http://scottisageek.spaces.live.com
Regards,
Scott
http://scottisageek.spaces.live.com
27th Apr 2009
0
Votes
Use Powershell
We had this issue on an old Windows 2000 server.
I fixed it by getting PowerShell (on a 2008 R2 server) to remotely read the log file for errors and email me the results daily.
Use this command to scan the log file for errors
Select-String "\* error" \\Server\winnt\SchedLgU.txt | |format-table LineNumber, line -AutoSize
or use this command to get the contents of the whole file
Get-Content \\Server\winnt\SchedLgU.txt
You can then add other things in the script to email results, create a marker file or whatever you need.
P.S. I had to share the Winnt directory before I could read the file remotely
I fixed it by getting PowerShell (on a 2008 R2 server) to remotely read the log file for errors and email me the results daily.
Use this command to scan the log file for errors
Select-String "\* error" \\Server\winnt\SchedLgU.txt | |format-table LineNumber, line -AutoSize
or use this command to get the contents of the whole file
Get-Content \\Server\winnt\SchedLgU.txt
You can then add other things in the script to email results, create a marker file or whatever you need.
P.S. I had to share the Winnt directory before I could read the file remotely
5th Feb
Replies
FOUR YEARS!!! That's how long it has been since this question was
asked and answered. Do you REALLY think anybody is going to keep
checking it after 4 years? Don't wake the dead, let them rest in peace.
Thank you,
wizard57m-cnet
TR Moderator
asked and answered. Do you REALLY think anybody is going to keep
checking it after 4 years? Don't wake the dead, let them rest in peace.
Thank you,
wizard57m-cnet
TR Moderator
wizard57m-cnet
5th Feb
If something comes up as the top result on a google search then it deserves to have an answer!
The internet doesn't have expiry dates, if it did this page would have been deleted
The internet doesn't have expiry dates, if it did this page would have been deleted
thommck
6th Feb

































