Super User is a question and answer site for computer enthusiasts and power users. 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

We currently have a service that is failing and need to be notified when it does. How to set up the service to send an email when it fails.

share|improve this question
Is it a third party service or something you are developing? If it is a common service, what's its name/purpose? – Jan Doggen Apr 26 '13 at 15:04
Is a commercial solution OK? – CoreTech Apr 26 '13 at 18:41

It is easy to get a Windows Service to run a program when it fails. Go to the Services snap-in, find the service, double click, and go to the Recovery tab. There you can choose what happens when it fails.

One of the options is Run a Program. You can write a script or program that sends an email, and simply point this at it. An easy way is to use Windows' wscript. See link.

Service Control Dialog

share|improve this answer

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.