Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to run a program only when a specific ASP.NET event occurs in the event-log. Is there any chance that it will get passed the event details when it is triggered?

share|improve this question
up vote 1 down vote accepted

You can schedule a task to occur when something in the Event Log happens. See here:

share|improve this answer
From that I see that it is the script's responsibility to re-query the Event Log for any event-data it needs. It is NOT passed directly to it as an argument. – sysadmin1138 May 10 '11 at 23:06
I was afraid that passing event variables to program which will be runned when event occur is not possible. So thank you for answering and I'm accepting currently proposed answer. – GrZeCh May 13 '11 at 8:59

Your Answer


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.