MOMResources.org

The place for all things MOM

Site News

March 28: Updated Announcements

March 5: Updated Announcements

February 27: Updated OpsMgr 2007 How-to's

February 20: Updated Announcements

January 31: Updated Announcements

Links:

Site Admins

MOM Administration

Below you will find a listing of great MOM scripts courtesy of MOMResources.org. Many of these scripts are fully functional with no user customization required. This archive contains both scripts and Transact SQL queries for use with MOM 2005 to enhance and extend out-of-the-box functionality. The hyperlink in the script column will present the source code in a new window, and the description column provides guidance on function and purpose. Double-click on column headers below to sort entries by date or alphabetically.

Date Added Script Description / Instructions for Use
10/16/2006 Update Custom Fields on MOM Alerts Queries Active Directory and updates custom alert fields with various computer information.
9/22/2006 Management Pack Backup with Archive Management Queries Onepoint for a list of top-level rule groups, creates a folder with current date/time and performs a backup of all MPs. Archive bit deletes archived MP backups older than the number of days you specify.
9/13/2006 Resolve all alerts for Target Computer Designed to run from cmd line on MOM Mgmt Server, this script takes a server name as an argument, and then deletes all alerts for that computer.
9/13/2006 Management Pack Backup Script (2) Retrieves a list of all MPs and backs them up to a specified
06/28/2006 Management Pack Restore Script Uses a shell object to initiate restore of target management pack backup.
04/27/06 Management Pack Backup Script A VBScript that can be used in a Windows scheduled task to automatically back up all of your management packs on a consistent basis.
04/24/06 Check Agent Action Account SQL Query to check action accounts, the second is a daily run script you can assign to run against a group of computers to ensure that the correct action account is always being used
04/24/06 Verify Agent Action Account This MOM script is used to verify a particular action account. Requires that two script parameters be established: LogSuccess - if set to true, logs an event when script runs successfully. ActionAccountID - Is the action account user to be validated.
04/24/06 Remove MOM Agent VBScript to programmatically removes mom agent from the target machine. Accepts the target machine name as an argument.
04/24/06 Find Rule Friendly Name SQL stored procedure that, given the rule GUID, will return the friendly name of the rule.
04/24/06 Audit Changes Rules /  Rulegroups This script is designed to run on an hourly basis to audit adds / deletes / changes to MOM rules and rule groups. Instructions for use here
04/24/06 Audit Changes Global Settings This script is designed to run on an hourly basis to audit adds / deletes / changes to MOM Global Settings. Instructions for use here
04/24/06 Audit Changes Tasks This script is designed to run on an hourly basis to audit adds / deletes /  to MOM Tasks. Instructions for use here
04/24/06 Audit Changes Scripts This script is designed to run on an hourly basis to audit adds / deletes /  to MOM Scripts. Instructions for use here
05/02/06 Agent Heartbeat Failure  / Return from Failure This script provides more detail into heartbeat failure, as well as an event when a machine returns from heartbeat failure. Works in conjunction with Return from Heartbeat Failure script (included in download).
04/24/06 Schedule Maintenance Mode Creates a schedule task on the MOM management server and after it runs, it automatically deletes itself. This script is meant to run from a Windows XP workstation and reference a Windows Server 2003 Management server.
04/24/06 Dump MOM Company Knowledge Articles Script is designed to dump company knowledge articles to html files, originally designed for MOM 2000.
04/24/06 Misc MOM SQL Queries A small collection of miscellaneous SQL queries provided by Rory McCaw.
04/25/06 Monitor MOM Console Connections Audits the number of MOM Console connections to each management server and graphs in a performance counter. Raises a warning event when the connection count reaches a user-defined threshold (15 by default).
04/25/06 Schedule Maintenance Mode (3) Uses the maintmode.exe from the SDK to enable me to schedule server for maint mode in advance leveraging the windows scheduling components
04/26/06 Auto-Resolve Alerts This script can be used to automatically resolve MOM alerts generated by a specific event rule. Rule uses Root\MOM WMI namespace and must be configured to run on management server.
04/27/06 Notification Escalation - Scan Alerts Introduced at MMS 2006: Scans open alerts and for those requiring escalation and creates an escalation alert
04/27/06 Notification Escalation - Set Delay Introduced at MMS 2006: Sets escalation delay and category on current alert. Script must be used in a management server in response to an event from the following WMI query.
04/27/06 Notify New Owner Introduced at MMS 2006: Sends an e-mail to the owner of an alert when the owner is changed.
5/2/06 Resolve GUID Registry Updates Changes registry key on MOM agents to resolve GUID from security events.
5/11/06 List Agent Primary Management Server SQL queries to identify the primary management server of MOM agents or managed agent count per management server.
5/17/06 Resolve ALL Alerts Run this vbscript on MOM management server to resolve ALL MOM alerts. Use with caution!
06/15/2006 SCDW Reindexing Script This script reindexes the SystemCenterReporting data warehouse to optimize MOM Reporting Server performance. Complete explanation and instructions for use are in the accompanying readme.txt file.