SCOM 2012 Daily Health Check Script

First off this is an updated script from Jason Rydstrand’s SCOM 2007 R2 daily check script.  If you would like to check out the original please see http://blogs.technet.com/b/jasonrydstrand/archive/2013/03/27/daily-scom-health-check-with-powershell.aspx

Special shout out to Bob Cornelissen and Tao Yang on this script!

I’ve updated the commandlets so it can be used for SCOM 2012 and SCOM 2012 R2. This script is intended to use Gmail as the mail delivery method. It can be easily changed to use other email systems but I’ll save that for a future article.  The only part that will need to be modified is the following:

$UserName is your Gmail email account

$Password is your Gmail password

$mailmessage.from is who the email will be coming from

$mailmessage.To.Add can be any additional people you would like to send this email to.

 

script-gmail-config

Script is available for download at Microsoft TechNet Script Gallery: http://gallery.technet.microsoft.com/scriptcenter/SCOM-2012-Daily-Health-5950d801

One thought on “SCOM 2012 Daily Health Check Script

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.