Commands › Exchange Online

Get-MessageTraceDetailV2

Exchange Online ExchangeOnlineManagement Get-*

Quick start script

# Get-MessageTraceDetailV2 — 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-MessageTraceDetailV2 -MessageTraceId <Guid> -RecipientAddress <String> | Format-List

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

Syntax

Get-MessageTraceDetailV2 [-MessageTraceId] <Guid> [-RecipientAddress] <String>
 [[-Action] <MultiValuedProperty>]
 [[-EndDate] <System.DateTime>]
 [[-Event] <MultiValuedProperty>]
 [[-MessageId] <String>]
 [[-SenderAddress] <String>]
 [[-StartDate] <System.DateTime>]
 [<CommonParameters>]

Parameters (8)

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...
-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.