Microsoft Operations Manager

EventLog Object (Deprecated)

The EventLogobject reads the Windows NT event log information. 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

BackupEventLog

Saves the specified event log to a backup file. This does not clear the event log.

ClearEventLog

Clears the specified event log and optionally saves the current copy of the log file to a backup file.

GetError

Gets the most recent error description for this object.

GetNumberOfEventLogRecords

Gets the number of records in the specified event log.

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.