Unable to Get more than 200 pages of Message Trace Data

Viewed 32

I am using powershell to get message trace data. I have read that the max. number of pages is 1000. But when I try to retrieve data, it stops after 200 pages. I get the below error: enter image description here

This is the command i use:

Get-MessageTrace @gmtParams | Select-Object EndDate, FromIP, Index, MessageID, MessageTraceID, Organization, Received, RecipientAddress, SenderAddress, Size, StartDate, Subject, ToIP

I have declared the max. page size and page numbers too.

$pageSize = 5000

$maxPage = 1000

Is there anything that I can do from my end or does something need to be changed at the exchange online side?

Any help would be greatly appreciated!

0 Answers
Related