Monitor Windows event logs for an event and execute a VBS script

eventviewermonitoringwindows-event-logwindows-server-2003

I need a free way to monitor the Windows event logs and when a particular event is logged I need to kick off a VBS script. Is there a tool that can do this?

Best Answer

You can roll your own using PowerShell 2.0 if it is installed on your server. Take a look at the Get-EventLog and Send-MailMessage cmdlets. Brush up on how PowerShell prefers to handle logical loops while you're at it.

From there, you can easily call any script that you want with cscript.exe

If you don't want to make your own log parsing script (it's not hard, promise!) then take a look at EventReporter which is a paid tool.