Lists logon information for a computer running Microsoft Exchange Server 2003
On Error Resume NextstrComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!\\" & strComputer & _"\ROOT\MicrosoftExchangeV2")Set colItems = objWMIService.ExecQuery("Select * from Exchange_Logon")For Each objItem in colItemsWscript.Echo "Client version: " & objItem.ClientVersionWscript.Echo "Code page ID: " & objItem.CodePageIDWscript.Echo "Folder operations rate: " & _objItem.FolderOperationsRateWscript.Echo "Host addess: " & objItem.HostAddressWscript.Echo "Last operation time: " & _objItem.LastOperationTimeWscript.Echo "Locale ID: " & objItem.LocaleIDWscript.Echo "Logged-on user account: " & _objItem.LoggedOnUserAccountWscript.Echo "Logged-on user's malibx legacy distinguished name: " _& objItem.LoggedOnUsersMailboxLegacyDNWscript.Echo "Logon time: " & objItem.LogonTimeWscript.Echo "Mailbox display name: " & _objItem.MailboxDisplayNameWscript.Echo "Mailbox legacy distinguished name: " & _objItem.MailboxLegacyDNWscript.Echo "Messaging operation count: " & _objItem.MessagingOperationRateWscript.Echo "Open attachment count: " & _objItem.OpenAttachmentCountWscript.Echo "Open folder count: " & objItem.OpenFolderCountWscript.Echo "Open message count: " & objItem.OpenMessageCountWscript.Echo "Other operation rate: " & _objItem.OtherOperationRateWscript.Echo "Progress operation rate: " & _objItem.ProgressOperationRateWscript.Echo "Row ID: " & objItem.RowIDWscript.Echo "Server name: " & objItem.ServerNameWscript.Echo "Storage group name: " & objItem.StorageGroupNameWscript.Echo "Store name: " & objItem.StoreNameWscript.Echo "Store type: " & objItem.StoreTypeWscript.Echo "Stream operation rate: " & _objItem.StreamOperationRateWscript.Echo "Table operation rate: " & _objItem.TableOperationRateWscript.Echo "Total operation rate: " & _objItem.TotalOperationRateWscript.Echo "Transfer operation rate: " & _objItem.TransferOperationRateWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file