Username: Password:
 | Register
Home
System Center Forum
  • News
  • Articles
  • How To Guides
  • Downloads
  • Frequently Asked Questions
  • Links
  • Events
  • Contact Us

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



  Posted by: Pete
  Categories: News, Operations Manager 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:

  • 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.
  • Get Timothy’s group maintenance mode script 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.

Leave a Reply

You must be logged in to post a comment.


Privacy Policy | Terms of Use | © 2005-2007 Pete Zerger