Returns message tracking entry 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_MessageTrackingEntry")For Each objItem in colItemsWscript.Echo "Attempted partner server: " & _objItem.AttemtpedPartnerServerWscript.Echo "Client IP: " & objItem.ClientIPWscript.Echo "Client name: " & objItem.ClientNameWscript.Echo "Cost: " & objItem.CostWscript.Echo "Delivery time: " & objItem.DeliveryTimeWscript.Echo "Encrypted: " & objItem.EncryptedWscript.Echo "Entry type: " & objItem.EntryTypeWscript.Echo "Expansion DL: " & objItem.ExpansionDLWscript.Echo "Key ID: " & objItem.KeyIDWscript.Echo "Linked message ID: " & _objItem.LinkedMessageIDWscript.Echo "Message ID: " & objItem.MessageIDWscript.Echo "Origination time: " & objItem.OriginationTimeWscript.Echo "Partner server: " & objItem.PartnerServerWscript.Echo "Priority: " & objItem.PriorityWscript.Echo "Recipient address: " & _objItem.RecipientAddressWscript.Echo "Recipient count: " & objItem.RecipientCountWscript.Echo "Recipient status: " & objItem.RecipientStatusWscript.Echo "Sender address: " & objItem.SenderAddressWscript.Echo "Server IP: " & objItem.ServerIPWscript.Echo "Server name: " & objItem.ServerNameWscript.Echo "Size: " & objItem.SizeWscript.Echo "Subject: " & objItem.SubjectWscript.Echo "Subject ID: " & objItem.SubjectIDWscript.Echo "Time logged: " & objItem.TimeLoggedWscript.Echo "Version: " & objItem.VersionWscript.EchoNext
This is a VB Script, this can be used by saving the file in .vbs file