Commands › Exchange Online

Get-MessageTraceDetail

Exchange Online ExchangeOnlineManagement Get-*

> [!NOTE] > This cmdlet is replaced by the Get-MessageTraceDetailV2 cmdlet and will eventually be deprecated. Use the Get-MessageTraceDetail cmdlet to view the message trace event details for a specific message. These detailed results are returned less quickly than the Get-MessageTrace results.

Quick start script

# Get-MessageTraceDetail — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-MessageTraceDetail -MessageTraceId <Guid> -RecipientAddress <String> | Format-List

# 3. Export for evidence / drift tracking
Get-MessageTraceDetail | Export-Clixml .\MessageTraceDetail-$(Get-Date -Format yyyyMMdd).xml

Syntax

Get-MessageTraceDetail -MessageTraceId <Guid> -RecipientAddress <String>
 [-Action <MultiValuedProperty>]
 [-EndDate <DateTime>]
 [-Event <MultiValuedProperty>]
 [-MessageId <String>]
 [-Page <Int32>]
 [-PageSize <Int32>]
 [-ProbeTag <String>]
 [-SenderAddress <String>]
 [-StartDate <DateTime>]
 [<CommonParameters>]

Parameters (11)

ParameterTypeRequiredWhat it controls
-MessageTraceId Guid yes The MessageTraceId parameter filters the results by the message trace ID value of the message. This GUID value is generated for every message that's processed by the system (for example, c20e0f7a-f06b-41df-fe33-08d9da155ac1).
-RecipientAddress String yes The RecipientAddress parameter filters the results by the recipient's email address.
-Action MultiValuedProperty The Action parameter filters the report by the action taken on messages. To view the complete list of valid values for this parameter, run the command: `Get-MailFilterListReport -SelectionTarget Actions`. The action...
-EndDate DateTime The EndDate parameter specifies the end date of the date range.
-Event MultiValuedProperty The Event parameter filters the report by the message event. The following are examples of common events:
-MessageId String The MessageId parameter filters the results by the Message-ID header field of the message. This value is also known as the Client ID. The format of the Message-ID depends on the messaging server that sent the...
-Page Int32 The Page parameter specifies the page number of the results you want to view. Valid input for this parameter is an integer between 1 and 1000. The default value is 1.
-PageSize Int32 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.
-ProbeTag String This parameter is reserved for internal Microsoft use.
-SenderAddress String The SenderAddress parameter filters the results by the sender's email address. You can specify multiple values separated by commas.
-StartDate DateTime The StartDate parameter specifies the start date of the date range.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.