PowerShell Script – SCCM 2007 Health Check

Posted on April 18, 2012. Filed under: Powershell Tangents |

Thank you for visiting my blog. I’ve moved this article to my new book’s website at: http://www.masteringPOSH.com/powershell-script-sccm-2007-health-check

System Center Configuration Manager 2007 is an extremely powerful tool that, when configured correctly, will provide deployment and reporting capabilities for your organization. As explored in a previous article (located here), there are situations where a health check is helpful to ensure stability of the SCCM 2007 servers.

The below PowerShell Script was designed to perform two operations:

  • Morning Report – To run as a scheduled task in the morning and email a distribution group (or individual email) if anything is potentially going wrong. (Warning Level to Critical Levels).
  • Hourly Status Check – To run as a scheduled task every hour and email a distribution group (or individual email) if anything is Critically wrong. (Critical Level Only).

The script performs the following at a high level:

  1. Loads the SCCM.XML File
  2. Determines from the SCCM.XML file where SCCM is installed.
  3. Using the SCCM.XML File, reads through the unique ID’s under the ‘filecheck’ and determines the file count for those directories.
  4. Using the SCCM.XML File, reads through the unique ID’s under the ‘servicecheck’ and determines the startup state, and running state of the services required for SCCM.
  5. Sends an email to the specified address with any warning or critical messages.

See the full article on MasteringPosh.com

 

Happy Coding!

Make a Comment

Leave a comment

    About

    Business and Information Technology Tangents is dedicated to providing quality content while informing the world about technology.

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS

    Meta

Liked it here?
Why not try sites on the blogroll...