SCOM Gray Agents in VMM – Report & Email

A customer had a number of agents hosted in VMM, and often a VM would hang after patching. It was “Running” according to VMM but not actually responsive. This script helped identity these Gray Agents. They also had VMs hosted in Azure, and those were identifiable by naming convention. It relies on the VMM and…

0

Script to delete decommissioned servers in SCOM

This is a modified version of Tim McFadden’s script. This script will take a text file containing the FQDNs of agents which need to be removed from SCOM. Note this process is for when a server has been decommissioned but was never removed from SCOM. If you are instead trying to remove the agent from…

0

Verifying PowerShell versions…let me count the ways

There are numerous posts out there on how to check which version(s) of PowerShell are installed on a machine. An easy, common way is to check the PSVersion property of the $PSVersionTable variable. This will tell you the version of the currently running engine. But what if you have multiple engines installed on the machine?…

1

Search SCOM subscriptions for a specific string

Today I made this simple script for a customer. It searches all notification subscriptions in your SCOM management group for a specific string. This script will look at subscriptions’ display name, description, and criteria. Matched results are printed out in green, and added to an array which is returned at the end of the script….

1