Christian Hans
asked on
Get-MessageTrace -PageSize 5000 limitation?
Is there any way to run a Get-MessageTrace against Exchange Online and retrieve more than just the 5000 lines? I cant seem to get more than the last 15-20 mins worth of data...
$dateEnd = get-date
$dateStart = $dateEnd.AddHours(-24)
Get-MessageTrace -PageSize 5000 -StartDate $dateStart -EndDate $dateEnd | Select-Object Received, SenderAddress, RecipientAddress, Subject, Status, ToIP, FromIP, Size, MessageID, MessageTraceID
-PageSize
The PageSize parameter specifies the maximum number of entries per page. Valid input for this parameter is an integer between 1 and 5000. The default value is 1000.
$dateEnd = get-date
$dateStart = $dateEnd.AddHours(-24)
Get-MessageTrace -PageSize 5000 -StartDate $dateStart -EndDate $dateEnd | Select-Object Received, SenderAddress, RecipientAddress, Subject, Status, ToIP, FromIP, Size, MessageID, MessageTraceID
-PageSize
The PageSize parameter specifies the maximum number of entries per page. Valid input for this parameter is an integer between 1 and 5000. The default value is 1000.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.