Commands › Exchange Online

Get-DlpPolicyTemplate

Exchange Online ExchangeOnlineManagement Get-*

**Note**: This cmdlet is retired from the cloud-based service. For more information, see this blog post. This cmdlet is functional only in on-premises Exchange. Use the Get-DlpPolicyTemplate cmdlet to view existing data loss prevention (DLP) policy templates that are based on transport rules (mail flow rules) in your Exchange organization.

Quick start script

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

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

Syntax

Get-DlpPolicyTemplate [[-Identity] <DlpPolicyIdParameter>]
 [-DomainController <Fqdn>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity DlpPolicyIdParameter The Identity parameter specifies the DLP policy template you want to view. You can use any value that uniquely identifies the DLP policy template. For example, you can specify the name, GUID or distinguished name...
-DomainController Fqdn This parameter is available only in on-premises Exchange.

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