Win32_PerfFormattedData_MSExchangeIS_MSExchangeISPublic vbscript sample code
The foundations for Manageability in Windows is Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself. The Win32_PerfFormattedData_MSExchangeIS_MSExchangeISPublic WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_PerfFormattedData_MSExchangeIS_MSExchangeISPublic",,48) For Each objItem in colItems Wscript.Echo "ActiveClientLogons: " & objItem.ActiveClientLogons Wscript.Echo "AverageDeliveryTime: " & objItem.AverageDeliveryTime Wscript.Echo "Caption: " & objItem.Caption Wscript.Echo "CategorizationCount: " & objItem.CategorizationCount Wscript.Echo "ClientLogons: " & objItem.ClientLogons Wscript.Echo "Description: " & objItem.Description Wscript.Echo "EventHistoryDeletes: " & objItem.EventHistoryDeletes Wscript.Echo "EventHistoryDeletesPersec: " & objItem.EventHistoryDeletesPersec Wscript.Echo "EventHistoryEventCacheHitsPercent: " & objItem.EventHistoryEventCacheHitsPercent Wscript.Echo "EventHistoryEventsCount: " & objItem.EventHistoryEventsCount Wscript.Echo "EventHistoryEventsWithEmptyContainerClass: " & objItem.EventHistoryEventsWithEmptyContainerClass Wscript.Echo "EventHistoryEventsWithEmptyMessageClass: " & objItem.EventHistoryEventsWithEmptyMessageClass Wscript.Echo "EventHistoryEventsWithTruncatedContainerClass: " & objItem.EventHistoryEventsWithTruncatedContainerClass Wscript.Echo "EventHistoryEventsWithTruncatedMessageClass: " & objItem.EventHistoryEventsWithTruncatedMessageClass Wscript.Echo "EventHistoryReads: " & objItem.EventHistoryReads Wscript.Echo "EventHistoryReadsPersec: " & objItem.EventHistoryReadsPersec Wscript.Echo "EventHistoryUncommittedTransactionsCount: " & objItem.EventHistoryUncommittedTransactionsCount Wscript.Echo "EventHistoryWatermarksCount: " & objItem.EventHistoryWatermarksCount Wscript.Echo "EventHistoryWatermarksDeletes: " & objItem.EventHistoryWatermarksDeletes Wscript.Echo "EventHistoryWatermarksDeletesPersec: " & objItem.EventHistoryWatermarksDeletesPersec Wscript.Echo "EventHistoryWatermarksReads: " & objItem.EventHistoryWatermarksReads Wscript.Echo "EventHistoryWatermarksReadsPersec: " & objItem.EventHistoryWatermarksReadsPersec Wscript.Echo "EventHistoryWatermarksWrites: " & objItem.EventHistoryWatermarksWrites Wscript.Echo "EventHistoryWatermarksWritesPersec: " & objItem.EventHistoryWatermarksWritesPersec Wscript.Echo "EventHistoryWrites: " & objItem.EventHistoryWrites Wscript.Echo "EventHistoryWritesPersec: " & objItem.EventHistoryWritesPersec Wscript.Echo "FolderopensPersec: " & objItem.FolderopensPersec Wscript.Echo "Frequency_Object: " & objItem.Frequency_Object Wscript.Echo "Frequency_PerfTime: " & objItem.Frequency_PerfTime Wscript.Echo "Frequency_Sys100NS: " & objItem.Frequency_Sys100NS Wscript.Echo "HTTPDAVCurrentPendingNotifications: " & objItem.HTTPDAVCurrentPendingNotifications Wscript.Echo "HTTPDAVCurrentSubscriptions: " & objItem.HTTPDAVCurrentSubscriptions Wscript.Echo "HTTPDAVCurrentTransactionLocks: " & objItem.HTTPDAVCurrentTransactionLocks Wscript.Echo "HTTPDAVNotifyRequestsPersec: " & objItem.HTTPDAVNotifyRequestsPersec Wscript.Echo "HTTPDAVTotalLocksCreated: " & objItem.HTTPDAVTotalLocksCreated Wscript.Echo "HTTPDAVTotalNotifyRequests: " & objItem.HTTPDAVTotalNotifyRequests Wscript.Echo "HTTPDAVTotalSubscriptionsCreated: " & objItem.HTTPDAVTotalSubscriptionsCreated Wscript.Echo "HTTPDAVTotalSubscriptionsExpired: " & objItem.HTTPDAVTotalSubscriptionsExpired Wscript.Echo "LogonOperationsPersec: " & objItem.LogonOperationsPersec Wscript.Echo "MessageOpensPersec: " & objItem.MessageOpensPersec Wscript.Echo "MessageRecipientsDelivered: " & objItem.MessageRecipientsDelivered Wscript.Echo "MessageRecipientsDeliveredPersec: " & objItem.MessageRecipientsDeliveredPersec Wscript.Echo "MessagesDelivered: " & objItem.MessagesDelivered Wscript.Echo "MessagesDeliveredPersec: " & objItem.MessagesDeliveredPersec Wscript.Echo "MessagesQueuedForSubmission: " & objItem.MessagesQueuedForSubmission Wscript.Echo "MessagesSent: " & objItem.MessagesSent Wscript.Echo "MessagesSentPersec: " & objItem.MessagesSentPersec Wscript.Echo "MessagesSubmitted: " & objItem.MessagesSubmitted Wscript.Echo "MessagesSubmittedPersec: " & objItem.MessagesSubmittedPersec Wscript.Echo "Name: " & objItem.Name Wscript.Echo "Numberofmessagesexpiredfrompublicfolders: " & objItem.Numberofmessagesexpiredfrompublicfolders Wscript.Echo "PeakClientLogons: " & objItem.PeakClientLogons Wscript.Echo "ReceiveQueueSize: " & objItem.ReceiveQueueSize Wscript.Echo "ReplicationBackfillDataMessagesReceived: " & objItem.ReplicationBackfillDataMessagesReceived Wscript.Echo "ReplicationBackfillDataMessagesSent: " & objItem.ReplicationBackfillDataMessagesSent Wscript.Echo "ReplicationBackfillRequestsReceived: " & objItem.ReplicationBackfillRequestsReceived Wscript.Echo "ReplicationBackfillRequestsSent: " & objItem.ReplicationBackfillRequestsSent Wscript.Echo "ReplicationFolderChangesReceived: " & objItem.ReplicationFolderChangesReceived Wscript.Echo "ReplicationFolderChangesSent: " & objItem.ReplicationFolderChangesSent Wscript.Echo "ReplicationFolderDataMessagesReceived: " & objItem.ReplicationFolderDataMessagesReceived Wscript.Echo "ReplicationFolderDataMessagesSent: " & objItem.ReplicationFolderDataMessagesSent Wscript.Echo "ReplicationFolderTreeMessagesReceived: " & objItem.ReplicationFolderTreeMessagesReceived Wscript.Echo "ReplicationFolderTreeMessagesSent: " & objItem.ReplicationFolderTreeMessagesSent Wscript.Echo "ReplicationMessageChangesReceived: " & objItem.ReplicationMessageChangesReceived Wscript.Echo "ReplicationMessageChangesSent: " & objItem.ReplicationMessageChangesSent Wscript.Echo "ReplicationMessagesReceived: " & objItem.ReplicationMessagesReceived Wscript.Echo "ReplicationMessagesSent: " & objItem.ReplicationMessagesSent Wscript.Echo "ReplicationReceiveQueueSize: " & objItem.ReplicationReceiveQueueSize Wscript.Echo "ReplicationStatusMessagesReceived: " & objItem.ReplicationStatusMessagesReceived Wscript.Echo "ReplicationStatusMessagesSent: " & objItem.ReplicationStatusMessagesSent Wscript.Echo "ReplIDCount: " & objItem.ReplIDCount Wscript.Echo "RestrictedViewCacheHitRate: " & objItem.RestrictedViewCacheHitRate Wscript.Echo "RestrictedViewCacheMissRate: " & objItem.RestrictedViewCacheMissRate Wscript.Echo "SearchTaskRate: " & objItem.SearchTaskRate Wscript.Echo "SingleInstanceRatio: " & objItem.SingleInstanceRatio Wscript.Echo "SlowFindRowRate: " & objItem.SlowFindRowRate Wscript.Echo "Timestamp_Object: " & objItem.Timestamp_Object Wscript.Echo "Timestamp_PerfTime: " & objItem.Timestamp_PerfTime Wscript.Echo "Timestamp_Sys100NS: " & objItem.Timestamp_Sys100NS Wscript.Echo "TotalCountofRecoverableItems: " & objItem.TotalCountofRecoverableItems Wscript.Echo "TotalSizeofRecoverableItems: " & objItem.TotalSizeofRecoverableItems Wscript.Echo "VirusScanBackgroundMessagesScanned: " & objItem.VirusScanBackgroundMessagesScanned Wscript.Echo "VirusScanBackgroundMessagesSkipped: " & objItem.VirusScanBackgroundMessagesSkipped Wscript.Echo "VirusScanBackgroundMessagesUpToDate: " & objItem.VirusScanBackgroundMessagesUpToDate Wscript.Echo "VirusScanBackgroundScanningThreads: " & objItem.VirusScanBackgroundScanningThreads Wscript.Echo "VirusScanExternalResultsAccepted: " & objItem.VirusScanExternalResultsAccepted Wscript.Echo "VirusScanExternalResultsNotAccepted: " & objItem.VirusScanExternalResultsNotAccepted Wscript.Echo "VirusScanExternalResultsNotPresent: " & objItem.VirusScanExternalResultsNotPresent Next