OpsMgr PowerShell script to reset all unit monitors

Issue:

Looking for PS script to reset all unit monitors (similar as GreenMachine utility for SCOM 2007)

Solution:

We found the script written by scomurr and my friend Adrian Bliss made some modifications.

How to run script:

OpsMgr PS> OpsMgr2012.MonitorReset.ps1 -sdkserver <ManagementServer> -action <REPORT\EXECUTE>

OpsMgr2012.MonitorReset.ps1.txt