Commands › Exchange Online
Get-DlpPolicyTemplate
**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)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.