how do i message tracking across specific hub transports servers only
hi , i wish to message tracking across a few hub transport servers only example of one server get-messagetrackinglog -Sender "wonder@ki.tony.com" -Server "sgmuht01" -Start "1/12/2011 3:35:00 PM" -End "1/14/2011 3:45:00 PM" | Export-Csv c:\temp\Messageinfo1.csv example if i have sgmuht01, sgmuht02, sgmuht03, sgmuht04 how do i run across these 4 servers in one command? thanks a lot
August 16th, 2012 5:41am

If your Exchange org has only those 4 HT servers, You can append Get-TransportServer to your existing command as in Get-TransportServer | get-messagetrackinglog -Sender "wonder@ki.tony.com" -Server "sgmuht01" -Start "1/12/2011 3:35:00 PM" -End "1/14/2011 3:45:00 PM" | Export-Csv c:\temp\Messageinfo1.csv Or you can have the servers added to CSV file with first line as name and use the following command foreach($server in Import-csv "CSV filepath"){get-messagetrackinglog -Sender "wonder@ki.tony.com" -Server $Server.name -Start "1/12/2011 3:35:00 PM" -End "1/14/2011 3:45:00 PM"} | Export-Csv c:\temp\Messageinfo1.csv
Free Windows Admin Tool Kit Click here and download it now
August 16th, 2012 7:18am

so the content of the csv file will be as follow? name sgmuht01 sgmuht02 sgmuht03 sgmuht04
August 16th, 2012 11:26am

Exactly.
Free Windows Admin Tool Kit Click here and download it now
August 16th, 2012 11:27am

hi, There is a useful link about Searching the Message Tracking Logs for a Message on Multiple Servers by Using the Exchange Management Shell http://technet.microsoft.com/en-us/library/bb124926.aspx Hope can help you thanks,CastinLu TechNet Community Support
August 16th, 2012 10:30pm

hi, There is a useful link about Searching the Message Tracking Logs for a Message on Multiple Servers by Using the Exchange Management Shell http://technet.microsoft.com/en-us/library/bb124926.aspx Hope can help you thanks,CastinLu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 16th, 2012 10:36pm

only the export command cannot work in this case an empty pipe element is not permitted
August 21st, 2012 2:32am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics