maintained by Pete Zerger | Last updated 4/9/2006

MOM 2005 Script Archive                                  

This archive contains both scripts and Transact SQL queries for use with MOM 2005 to enhance or 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.

While the scripts have been pulled into the local archives in many cases, some will link into remote community sites where you must have a login (momcommunity.com, gotdotnet.com). By don't worry! All the resources here are free. So when you hit those links, sign up and join the community!

Do you  have a script, tutorial, custom management pack you'd like to share? Click here and we'll share it with the community. (Please rename your scripts with a .txt extension or simply paste the code into the message body).

Use the Edit > Find utility in your IE browser to search this page.

Script Description / Instructions for Use Author
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 Unknown
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. Jessie Harris
Remove_MOM_Agent VBScript to programmatically removes mom agent from the target machine. Accepts the target machine name as an argument. Jessie Harris
Find_Rule_Friendly_Name SQL stored procedure that, given the rule GUID, will return the friendly name of the rule. Pete Zerger
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 Jesse Harris
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 Pete Zerger
Audit_Changes_Tasks This script is designed to run on an hourly basis to audit adds / deletes /  to MOM Tasks. Instructions for use here Pete Zerger
Audit Changes_Scripts This script is designed to run on an hourly basis to audit adds / deletes /  to MOM Scripts. Instructions for use here Pete Zerger
Check_Windows_Installer_Version MOM 2005 SP1 requires Windows Installer 3.1v2 be present on MOM servers or future managed server targets prior to deployment. Given a list of computers, this vbscript script will compare the current version with the required version and output results to a log file so you'll know if machines are ready before pushing the agent. Pete Zerger
Agent_Heartbeat_Failure This script provides more detail into heartbeat failure, as well as an event when a machine returns from heartbeat failure.

John Hahn

Schedule_Maintentance_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. Justin Harter