Commands › Exchange Online
Get-DataClassification
This cmdlet is functional only in on-premises Exchange. In Exchange Online, this cmdlet is replaced by the Get-DlpSensitiveInformationType cmdlet in Security & Compliance PowerShell. Use the Get-DataClassification cmdlet to view the data classification rules in your organization. This cmdlet shows built-in data classification rules and rules that you created that use document fingerprints.
Quick start script
# Get-DataClassification — 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-DataClassification | Format-List
# 3. Export for evidence / drift tracking
Get-DataClassification | Export-Clixml .\DataClassification-$(Get-Date -Format yyyyMMdd).xml
Syntax — 2 parameter sets
RuleCollectionIdentity
Get-DataClassification [[-ClassificationRuleCollectionIdentity] <ClassificationRuleCollectionIdParameter>]
[-DomainController <Fqdn>]
[<CommonParameters>]
Identity
Get-DataClassification [[-Identity] <DataClassificationIdParameter>]
[-DomainController <Fqdn>]
[<CommonParameters>]
Parameters (3)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.