vote up 1 vote down star

Hi all,

I'd like to be alerted by e-mail when one of my server starts. There are some power issues and want to be alerted when it recovers from a power outage (I have to open a user session in order to some program starts running). Do you know of any service that sends and e-mail to a given address when it starts? The server is runng Windows 2003 Server.

Thanks in advance!

flag
3  
This may be a good question for sister site, ServerFault.com. – JMD Nov 20 at 19:41
Done! Thanks for the advice. – Antoni Nov 20 at 21:06

4 Answers

vote up 0 vote down

use a command line mailer (e.g. Bmail) and run a batch file at startup.

Bmail is freeware, like all the other useful utilities form Beyond Logic.

link|flag
1  
Something at startup is not useful in this case; I need it to be a service because I need to receive an e-mail with no session started on the server. Thanks anyway! – Antoni Nov 20 at 20:59
Use srvany to convert it to a service – taspeotis Jan 20 at 22:39
vote up 0 vote down

I would install powershell 2.0 and write a small cmdlet function which sends email when it starts. I believe you can assign this to startup using GPO. I believe the cmdlet is send-mailmessage

http://www.jonathanmedd.net/2009/11/powershell-2-0-one-cmdlet-at-a-time-2-send-mailmessage.html

link|flag
1  
Same as the previous answer: I need it to be a service. Anyway, thanks for the answer! – Antoni Nov 20 at 21:00
Use srvany to convert it to a service – taspeotis Jan 20 at 22:38
vote up 0 vote down

If you don't mind some coding, here is some sample code that might be a good start, or an exact fit, for what you want to do: Simple Windows Service which sends auto Email alerts

link|flag
vote up 0 vote down

You can use the built-in Task Scheduler to run something without having to log in. Simply check the When my computer starts box as shown here:

alt text

You can configure this to run a batch script which uses any of the command line mailers specified in other answers.

link|flag

Your Answer

Get an OpenID
or
never shown

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