MOMScriptAPI Object

Updated: January 31, 2012

Applies To: System Center 2012 - Operations Manager

The MOMScriptAPI object is the top-level object for the scripting API.


Name Description


Adds a MOMPropertyBag object or a MOMDiscoveryData object into a MOMScriptAPI internal array.


Creates a new MOMDiscoveryData object, which stores discovery data and is used to submit the collected data back to Operations Manager.


Creates a new MOMPropertyBag object, which is used to temporarily store operations data (such as discovery, event, alert, or performance data) as a collection of name-value pairs.


Creates a new MOMPropertyBag object that allows for type checking against the specified data type.


Retrieves a safe registry path to which data can be written and shared between scripts.


Writes a message to the Operations Manager event log.


Submits a MOMDiscoveryData or MOMPropertyBag object back to Operations Manager and completes the script.


Submits multiple MOMDiscoveryData or MOMPropertyBag objects back to Operations Manager and completes the script.


The following example shows how to create a new instance of the MOMScriptAPI object.

var objScriptAPI = new ActiveXObject('MOM.ScriptAPI');

Platforms: Requires Windows Server 2003, Windows Vista, or Windows Server 2008

Version: Requires Operations Manager 2007 or System Center 2012 – Operations Manager

The MOMScriptAPI methods are used to create new MOMPropertyBag objects or MOMDiscoveryData objects and then submit them back to the Operations Manager management server.

You can also use the MOMScriptAPI object to submit monitoring data back to the Operations Manager management server, determine a safe registry path for written data, and log script events.

Other Resources