Commands › Exchange Online

Get-MailDetailATPReport

Exchange Online ExchangeOnlineManagement Get-*

List details about Microsoft Defender for Office 365 detections in your cloud-based organization for the last 10 days.

Quick start script

# Get-MailDetailATPReport — 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-MailDetailATPReport | Format-List

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

Syntax

Get-MailDetailATPReport
 [-DataSource <String>]
 [-Direction <MultiValuedProperty>]
 [-Domain <MultiValuedProperty>]
 [-EndDate <DateTime>]
 [-EventType <MultiValuedProperty>]
 [-MessageId <MultiValuedProperty>]
 [-MessageTraceId <MultiValuedProperty>]
 [-Page <Int32>]
 [-PageSize <Int32>]
 [-ProbeTag <String>]
 [-RecipientAddress <MultiValuedProperty>]
 [-SenderAddress <MultiValuedProperty>]
 [-StartDate <DateTime>]
 [<CommonParameters>]

Parameters (13)

ParameterTypeRequiredWhat it controls
-DataSource String {{ Fill DataSource Description }}
-Direction MultiValuedProperty The Direction parameter filters the results by incoming or outgoing messages. Valid values are:
-Domain MultiValuedProperty The Domain parameter filters the results by an accepted domain in the cloud-based organization. You can specify multiple domain values separated by commas, or the value All.
-EndDate DateTime The EndDate parameter specifies the end date of the date range.
-EventType MultiValuedProperty The EventType parameter filters the report by the event type. Valid values are:
-MessageId MultiValuedProperty 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...
-MessageTraceId MultiValuedProperty 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).
-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.
-RecipientAddress MultiValuedProperty The RecipientAddress parameter filters the results by the recipient's email address. You can specify multiple values separated by commas.
-SenderAddress MultiValuedProperty 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.