Get-MessageTraceDetail not available for e-mail older than 2 days

Ron Houet 56 Reputation points
2022-04-28T13:39:03.253+00:00

According Microsoft's documentation Get-MessageTraceDetail should be able to trace messages up to 10 day, like Get-MessageTrace.
But I don't get any results for email older than 48 hours. No error, just empty result, blank line.

Anyone an idea?

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,358 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,480 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 144.7K Reputation points MVP
    2022-04-28T14:12:43.863+00:00

    You will need to include -StartDate -EndDate for that command as well if its more than 2 days

    Get-MessageTraceDetail -MessageTraceId 246bcb69-70a2-4d4b-0246-08da2754aeff -RecipientAddress <My E-mailaddress> -StartDate <date> -EndDate <date>
    

1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 144.7K Reputation points MVP
    2022-04-28T13:45:55.193+00:00

    use the StartDate and EndDate and set the time period in the last 10 days.

    https://learn.microsoft.com/en-us/powershell/module/exchange/get-messagetracedetail?view=exchange-ps

    Example:

    Get-MessageTrace -MessageTraceId 2bbad36aa4674c7ba82f4b307fff549f -SenderAddress john@contoso.com -StartDate 06/13/2018 -EndDate 06/15/2018 | Get-MessageTraceDetail