Update: Collection of Maintenance Mode Scripts, Utilities and MPs for Opsmgr and Essentials 2007

 

For my own reference, I put together a collection of several of the original and known functional maintenance mode scripts, utilities and MPs.

Revisions:

  • 4/1/2009 - Added link to Mark Wolzaks Maintenance Mode GUI
  • 7/26/2008 - Added link to Timothy McFaddens Remote Maintenance Mode Scheduler
  • 6/28/2008 - Added link to Timothy McFaddens Powershell group maint mode script that handles nested groups.
  • 5/7/2008 - Added link to Andrzej version of group maintenance mode that provides up to 10 maintenance schedules through the rules in the console UI.
  1. Put a computer in maintenance mode - To truly silence an agent management computer, you must put the computer, health service and health service watcher in maintenance mode. This script does exactly that. Boris put some Powershell together to make that happen, and then Timothy quickly packaged it into a .ps1 file with the appropriate connection string.

Get the classic maintenance mode Powershell script HERE.

  1. Put a group of computers in maintenance mode - Putting a group of computers into maintenance mode is an obvious timesaver. Timothy McFadden put a nice script together to put a group of computers into maintenance mode, and Boris created a similar script several months later.
  • April 1, 2009 - Get Mak Wolzaks Maintenance Mode GUI HERE.
  • July 26th, 2008 - Get Timothy McFaddens Remote Maintenance Mode Scheduler HERE.
  • Get Timothy’s group maintenance mode script HERE.
  • June 28th, 2008 - Timothy updated his group maintenance mode Powershell script to handle nested groups, HERE.
  • Get group maintenance mode, Boris flavor HERE
  • However, Brian Wren’s treatment of group maintenance mode (wrapped in an MP) is not to be missed when you’re learning about maintenance, Powershell or MP authoring. Check it out HERE.
  • May 7th, 2008 - Andrej posted an updated version of Brians MP that allows up to 10 maintenance mode schedules for groups of computers, configurable through the UI. It can be found HERE.

Target this to the ?Agent Managed Computer Group’ and you can put just about everything Windows into maintenance mode all at once.

  1. Put an object type (other than a computer) in maintenance mode - This puts an instance of any object type you specify into maintenance mode. This allows you to put an object, such as a web application, into maintenance mode while monitoring of the computer and its other components remains active.

See the code snippet for maintenance mode for any object class HERE or HERE.

  1. AgentMM Command Line Utility - Written by Clive Eastwood, this command line tool puts Ops Mgr 2007 agents into maintenance mode (all 3 object classes necessary).

Download Clive’s tool HERE.

  1. Putting agents in maintenance mode remotely - Andrzej has a nice walkthrough incorporating Clive’s AgentMM.exe maintenance mode CLI tool for a scheduled batch job or ad-hoc execution.

Find a description and link HERE.

One Response to “Update: Collection of Maintenance Mode Scripts, Utilities and MPs for Opsmgr and Essentials 2007”

  1. Denver Enterprise Management User Group - Meeting Follow-up for 5/22 - System Center Virtual User Group Weblog Says:

    [...] Collection of Maintenance Mode Resources [...]

Leave a Reply

privacy policy | terms of use | copyright © 2008 pete zerger