Microsoft Operations Manager

Utility Object (Deprecated)

The Utilityobject provides general-purpose functionality not provided by other MOM objects. This object has been deprecated and should not be used when creating new scripts. It is included only to support existing scripts. For new scripts, see Using Operating System APIs in Scripts.

Methods

Name Description

CreateProcess

Creates a new Windows NT process.

ExpandEnvironmentStrings

Expands environment-variable strings to their defined values.

GetEnviron

Gets the specified environment variable from the environment of the current process.

GetError

Gets the most recent error description for the Utilityobject.

LogEvent

Logs a generic event to the Windows NT application event log using the MOM event source.

Sleep

Suspends execution of the script for the specified number of seconds.

SleepMs

Suspends execution of the script for the specified number of milliseconds.

Requirements

Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1


Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.