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

I need a query to pull a message trace for emails sent by 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?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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:

Or this example on how to work with them:
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  -StartDate “8/06/2015 15:30” -EndDate “8/06/2015 16:30” -PageSize 5000 |Export-Csv e:\kc_list.csv
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.

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.