I am trying to send an email when a Windows service doesn't start.
What I did:
I wrote a batch file that runs a short Powershell script to send an email. It works fine if I run the batch file by itself. I get an email.
I have a service on my laptop set to "Automatic" startup, that I forced to "not start" by changing the password of the "Log On" account.
On the "Recovery" Tab I set 1st and 2nd Failure tabs to "Run a Program"
I checked "Enable actions for stops with errors"
Under "Run Program" in the "Program" box, I browse to the BAT file and it shows: C:\My_TEST\SendMailMessage.bat
I shut down and restart my laptop, but do not get an email when the service tries to start.
Any Ideas ?
- This topic was modified 7 months, 1 week ago by homebrew01.