Microsoft Operations Manager

GetNumberOfEventLogRecords Method

The GetNumberOfEventLogRecordsmethod gets the number of records in the specified event log.

[VBScript]
EventLog.GetNumberOfEventLogRecords(EventLogName Variant,
NumRecords Variant, [MachineName Variant])

Parameters

EventLogName
Specifies the name of the log file from which to retrieve the number of records.
NumRecords
Number of records in the specified event log.
MachineName
Specifies the target computer. This parameter is optional. If the target computer is not specified or the parameter is an empty string, the local computer is the target.

Return Value

Boolean

Remarks

The EventLogobject should not be used when creating new scripts. It is included only to support existing scripts. For more information about equivalent APIs, see Using Operating System APIs in Scripts.

Requirements

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

See Also

EventLog Object


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