Get-MessageTrackingLog shows System.String[] instead of recipients
I am using the Get-MessageTrackingLog and Export-CSV PowerShell cmdlets to provide a report on messages sent to specific recipients. This is the command I am issuing: Get-MessageTrackingLog -Sender “user@mydomain.com” -Server “myserver” -Start “02/24/2016 00:00:00” -End “02/24/2016 10:00:00” -ResultSize Unlimited -EventID…
Search Exchange Message Tracking Logs with a wildcard
When using the Get-MessageTrackingLog cmdlet you can’t use wildcards with the Sender or Recipient parameters. Instead, I pipe the output of Get-MessageTrackingLog to Where-Object: Where-Object {$_.Recipients -Like *@gmail.com} The following PowerShell command will return all results from a server named…
String was not recognized as a valid DateTime error when using get-messagetrackinglog
Today I was using the get-messagetrackinglog PowerShell command and it returned the following error: Cannot process argument transformation on parameter ‘Start’. Cannot convert value “25/07/2013 03:00:00” to type “System.DateTime”. Error: “String was not recognized as a valid DateTime.” + CategoryInfo :…
Query the message tracking log using PowerShell
Using the Tracking Log Explorer GUI is fine for checking whether messages were sent or received but there is no way to export the results to a file. That’s where the Get-MessageTrackingLog PowerShell command comes in, combined with the Export-CSV…