Scripting Series (Part 1): Updating MOM 2005 Runtime Scripts for OpsMgr and SCE
In the move from MOM 2005 to Operations Manager 2007 and Essentials 2007, I know there is some frustration in the fact that the runtime scripting API had to change. I thought some guidance on converting existing MOM 2005 scripts and creating new ones would be welcome.
So over the next few weeks with a series of scripting articles designed for MOM 2005 folks and folks not to familiar with VBScript, we will tackle Operations Manager scripting in small chunks, providing a new walkthrough every few days. Each successive article will build on our work from the previous in some way. In Part 1, we tackle a simple MOM 2005 Script Conversion and look at the MOMScriptAPI.LogScriptEvent method in an end-to-end walkthrough from concept to implementation.
All samples are Operations Manager 2007 / Essentials 2007 friendly, with versions for both RTM and SP1 included in the management pack download.
- You can download the full article HERE.
- You can download the accompanying Scripting Series Part 1 Management Pack HERE.
Feedback is welcome at http://www.systemcenterforum.org/contact

January 3rd, 2008 at 6:51 pm
[…] 8. Pete’s guide to runtime scripting in OM07 - part 1: http://www.systemcenterforum.org/scripting-series-part-1-updating-mom-2005-runtime-scripts-for-opsmg…. More parts coming. Gr8 stuff, […]
February 1st, 2008 at 5:02 am
[…] Part 1 and Part 2 we touch on file size and file presence (or absence), and show off some custom […]
February 1st, 2008 at 9:04 am
[…] to point you to those, and give you a heads up on part 3 of the scripting series coming soon. In Part 1 and Part 2 we touch on file size and file presence (or absence), and show off […]
March 8th, 2008 at 10:52 pm
[…] Updating MOM 2005 Runtime Scripts for OpsMgr Custom Performance Objects in Runtime Scripts […]
June 13th, 2008 at 11:54 am
I used a script with the MOMScriptAPI.LogScriptEvent method and an alert rule, after that i saw a alert in the console. Now i want to display this alert to special group view, but because of the MOmscriptapi the source computer is Mom Management, and i just want to show this group this alert and not all the alerts of the management server. Do you have solution for my problem
Thanks in advance
September 12th, 2008 at 1:52 pm
[…] 8. Pete’s guide to runtime scripting in OM07 - part 1: http://www.systemcenterforum.org/scripting-series-part-1-updating-mom-2005-runtime-scripts-for-opsmg…. More parts coming. Gr8 stuff, […]