SCOM PowerShell – Get Empty Classes

This little gem is fabulous.

Here’s the use case: Your environment has about a million MPs that have been imported by a long storied line of SCOM professionals that came before you and have long since gone. You have no idea if all these MPs are even being used anymore. There could be a bunch that aren’t even monitoring anything because the servers they were originally targeted at have all moved on to the graveyard. The only thing you know is its definitely time to clean house!

This script along with MP Viewer ( is a good start and can help you with identifying MPs that aren’t doing anything. Just put in your management server name and filter your MPs by name or have it go through all of them by using a “*”. It will then export a list of classes for each MP and let you know if they are empty or not.

Download the script here:

Site Index


SCOM PowerShell – Get Alerts by Management Pack

This PowerShell script will return SCOM alerts by management pack (or management packs). Add your SCOM management server name and filter by MP(s) and it will return a bunch of alert info and save it to a csv file. I whipped it up quick today and thought I’d share it in case someone might find it handy. Its not super fancy but will get you started.

Download here:

Site Index