Power alert scripts

I like to put as little extra software on servers as possible…the less stuff that’s on the system, the less there is to go wrong and have to update. So I really like the simple scripts Sean Daniel posted for sending out alerts when a UPS goes into battery mode and when it’s shutting down the system.

The following is the VBS script for use on an SBS box and he has another for use on Windows Home Server (servers without Exchange):

Dim MyMail
Set MyMail = CreateObject("CDO.Message")
MyMail.From = "administrator@contoso.com"
MyMail.To = "user1@domain.com;4251234567@txt.com"
MyMail.Subject = "Power Outage Shutdown"
MyMail.TextBody = "Power not restored. Server shutting Down."
MyMail.Fields("urn:schemas:mailheader:X-MSMail-Priority") = 2
Set MyMail = Nothing

Explore posts in the same categories: Tech

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: