Commands › Exchange Online

Get-AntiPhishPolicy

Exchange Online ExchangeOnlineManagement Get-*

View antiphish policies in your cloud-based organization. This cmdlet returns results only in Exchange Online PowerShell.

Quick start script

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

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

Syntax

Get-AntiPhishPolicy [-Identity <AntiPhishPolicyIdParameter>]
 [-Advanced]
 [-Impersonation]
 [-Spoof]
 [<CommonParameters>]

Parameters (4)

ParameterTypeRequiredWhat it controls
-Identity AntiPhishPolicyIdParameter The Identity parameter specifies the antiphish policy that you want to view. You can use any value that uniquely identifies the policy. For example:
-Advanced SwitchParameter The Advanced switch filters the properties that are returned to the advanced settings in the policy. For example:
-Impersonation SwitchParameter The Impersonation switch filters the properties that are returned to the impersonation settings in the policy. For example:
-Spoof SwitchParameter The Spoof switch filters the properties that are returned to the spoof settings in the policy. For example:

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