1

With windows server 2008 you can start a program using scheduled task triggered by event on event viewer.

Is there a way to emulate this with Windows Server 2003?

Thank you in advance

1
  • 1
    Not that I'm aware of.
    – joeqwerty
    Aug 2, 2013 at 11:31

3 Answers 3

2

Yes, using event triggers (EVENTTRIGGERS.EXE on Win2k3), see here.

1

You could use Powershell to monitor the eventlog for certain events. Here's a script someone wrote for this very purpose.

http://gallery.technet.microsoft.com/scriptcenter/ed188912-1a20-4be9-ae4f-8ac46cf2aae4

1

You can use vbscript (WMI) to create an Event Notification Query and respond to specified events according to your needs... Something like this:

Set objWMIService = GetObject("winmgmts:" & _
    {impersonationLevel=impersonate,(Security)}!\\.\")

Set colMonitoredEvents = objWMIService.ExecNotificationQuery _     
("Select * from __instancecreationevent where TargetInstance isa 'Win32_NTLogEvent'") 
Do 
  Set objLatestEvent = colMonitoredEvents.NextEvent 
  strTimeWritten = objLatestEvent.TargetInstance.TimeWritten
  strSource  = objLatestEvent.TargetInstance.SourceName
  strType  = objLatestEvent.TargetInstance.Type
' etc
loop

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .