About the Operations Manager Script Library

Updated: January 31, 2012

Applies To: System Center 2012 - Operations Manager

The Operations Manager script library consists of a single dynamic-link library (DLL), MOMScriptAPI.dll. This library is automatically installed and registered on every management server and agent-managed computer in a management group. For information about the objects that are provided by the library, see Operations Manager Scripting Objects.

You can also manually copy and register the library for use on a computer that does not have Operations Manager installed. This can be useful when you are testing a script before adding it to a management pack.

Copying and Registering the Script Library

To use the Operations Manager Script API on a computer that does not have Operations Manager or an agent installed, copy the script library from the Operations Manager installation directory to the destination computer and then register the script library by using the following command:

Regsvr32 MOMScriptAPI.dll

You must also copy HealthServiceRuntime.dll and possibly some other Operations Manager libraries to the destination computer.

You are now ready to begin creating runtime scripts. For more information, see Getting Started Developing Runtime Scripts.

See Also