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?
rdefinoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vasil Michev (MVP)Commented:
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
0
rdefinoAuthor Commented:
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
0
Vasil Michev (MVP)Commented:
You can use the -Status parameter:

Get-MessageTrace -Status Delivered

Open in new window


Again, you can work around the 5k limit by using the page Page parameter, look at the example script I linked above.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Office 365

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.