Reset Monitor State (in SCOM 2007)

by OpsMgr MVP Scott Moss, This code will get a list of all alerts that are closed that were created by a monitor, that are older than 1 day, and reset the monitor that created the alert.

NOTE: Before running this script I would suggest getting a count of what your going to be resetting , so you’ve got an idea how long this script might take to run.