Link to home
Start Free TrialLog in
Avatar of rdefino
rdefinoFlag for United States of America

asked on

need o365 message trace where the subject doesn't get truncated

I need a query to pull a message trace for emails sent by xxxx.xxx.com on 8-6-2015 3:30pm - 4:30pm .

But when I run it from power shell the subject always show as "something like thi.......". it gets truncated. I need to get the entire subject and dump it to a csv file.

also my results will be over 5000 entries. not sure if there is a limit.

Any thoughts?
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

The truncation is only a display issue due to the format used, if you save the results to a variable and export to CSV it whould be fine.

As for the 5k limit, you can use Page/PageSize parameters. Check the cmdlet help for more info: https://technet.microsoft.com/en-us/library/jj200704(v=exchg.150).aspx

Or this example on how to work with them: https://gallery.technet.microsoft.com:443/office/Office-365-Mail-Traffic-afa37da1
Avatar of rdefino

ASKER

How can I set this to just show delivered emails? Little confused on this. Since the limit export is 5000 I need to refine it a bit.


PS C:\Windows\system32> Get-MessageTrace -SenderAddress something@1234.com  -StartDate “8/06/2015 15:30” -EndDate “8/06/2015 16:30” -PageSize 5000 |Export-Csv e:\kc_list.csv
ASKER CERTIFIED SOLUTION
Avatar of Vasil Michev (MVP)
Vasil Michev (MVP)
Flag of Bulgaria image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial