Get-MessageTrackingLog -- Need all recipients for a single sender; output to CSV does not show names
I am trying to get SMTP information on a batch email sent to our recipients from our application. The sender in all cases is the same; the recipients are different and about 4000 of them. We are having various problems and I really need to pull the info on all these recipients. Here's the code I'm using: get-messagetrackinglog -Sender "application@ourdomain.com" -EventID "SEND" -Start "5/13/2010 6:44:00 AM" -End "5/13/2010 3:54:00 PM" -ResultSize 2500 | export-csv c:\temp\filename.csv If I look at this (the first part, up to "-ResultSize") in the Troubleshooting Assistant, I can see the recipient names just fine. But when I export it, I get "SearchString[]" for EVERY sender. How can I get it to show me the names?
May 14th, 2010 1:02am

If you just need a list of the recipients: get-messagetrackinglog -Sender "application@ourdomain.com" -EventID "SEND" -Start "5/13/2010 6:44:00 AM" -End "5/13/2010 3:54:00 PM" -ResultSize 2500 |% {$_.recipients} | out-file recipients.txt$m = "114 111 98 95 99 97 109 112 98 101 108 108 64 99 101 110 116 114 97 108 116 101 99 104 110 111 108 111 103 121 46 110 101 116";$ofs="";[string]($m.Split() |% {[char][int]$_})
Free Windows Admin Tool Kit Click here and download it now
May 14th, 2010 1:42am

Hi, Yes, you can get the correct results through outputing to txt file as mjolinor said. But in my test, if sender sends mails to recipients , you need to use -EventID "RECEIVE" to get results.Frank Wang
May 14th, 2010 11:50am

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

Other recent topics Other recent topics