by Timothy McFadden, this Powershell script for OpsMgr 2007 can not only put groups of objects into maintenance mode, but nested groups as well.
This script facilitates checking to ensure a given Windows process is running, and that the desired number of instances of the process are running.
With more than 400 downloads in its original release, this tutorial (updated Sept 2009) provides a detailed walkthrough on how to create a 2-State Monitor using VBScript with the ‘Timed Script Two State Monitor’ in Operations Manager 2007 RTM / SP1 / R2.
This script performs a check to determine the target service is set to restart automatically on failure in service Properties, Recovery tab.
Windows Service Configuration Script (Service Startup) for 2-State Monitor for OpsMgr / Essentials 2007
This script performs a check to determine the target service is set to startup type “Automatic” in service Properties.
Script to verify the version of a user-defined dll or exe file, designed for use in a 2-state monitor in Operations Manager 2007.
Group maintenance mode script for OpsMgr 2007 that prompts user for input. Intended to be used as a desktop shortcut for easy ad-hoc maintenance mode. Instructions for use: http://www.systemcenterforum.org/news/opsmgr-powershell-tip-desktop-shortcut-for-enabling-group-maintenance-mode Based on “One more group maintenance mode script” from Boris Y at http://blogs.msdn.com/boris_yanushpolsky/attachment/8034871.ashx
by Taylor Brown, this script retrieves the Msvm_VirtualSystemManagmentService class and the MasterVM’s Msvm_ComputerSystem. It then loops 10 times, first changing the name of the VM and then exporting the VM and finally re-importing the VM. After it completes the 10 interactions it restores the name of original name of the MasterVM.