Windows Server 2008 Send Error Message on Event Log Error

task-schedulerwindowswindows-event-logwindows-server-2008

We currently have a Windows Server 2008 machine that we have configured with a Custom Task to send an email whenever an error occurs in a certain Event Log. The trigger works perfectly, and sends emails whenever we need them to.

HOWEVER, we cannot find a way to get the email to contain information about the error, particularly the error message. Is there any way to have the message change based on the contents of the event-log error?

Best Answer

Maybe eventtriggers is your answer? I'm not too familiar with Server 2008 yet but I used to use eventtriggers all the time with 2003. Let's you do whatever you want since you can run any command or script you write.

http://www.petri.co.il/how-to-use-eventtriggersexe-to-send-e-mail-based-on-event-ids.htm

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/eventtriggers.mspx?mfr=true