Share via


Using Operating System APIs in Scripts

You can make your MOM scripts less dependent on the helper objects by relying on Windows Management Instrumentation (WMI) and other APIs that are included with Windows. Using built-in APIs provides the following advantages:

  • Scripts continue to call fast, external compiled code libraries.
  • Multiple scripts can continue to reuse an external library for commonly used functions.
  • Scripts are easier to upgrade.
  • Scripts use well-documented, commonly used Windows APIs rather than specialized APIs that are specific to MOM. If you are already familiar with WMI for automating Windows management tasks, you will not need to learn a new set of APIs.
  • In most cases, the WMI and COM classes recommended in this documentation expose far more methods and properties than the MOM helper objects. These other methods and properties can provide additional benefits for your scripts.

The majority of the helper objects have been deprecated and should not be used when creating new scripts.

For more information about equivalent operating system APIs to use in place of the MOM helper objects, see the following topics:

See Also

Windows Management Instrumentation SDK