Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
1  
Not that I'm aware of. –  joeqwerty Aug 2 '13 at 11:31
add comment

3 Answers

up vote 1 down vote accepted

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

share|improve this answer
add comment

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

share|improve this answer
add comment

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
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.