Commands › Exchange Online

Get-DataClassification

Exchange Online ExchangeOnlineManagement Get-*

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)

ParameterTypeRequiredWhat it controls
-ClassificationRuleCollectionIdentity ClassificationRuleCollectionIdParameter The ClassificationRuleCollectionIdentity parameter filters the results by the name of the data classification rule collection. The data classification rule collection that contains the built-in data classification...
-Identity DataClassificationIdParameter The Identity parameter specifies the data classification rule that you want to view. You can use any value that uniquely identifies the data classification rule. For example:
-DomainController Fqdn The DomainController parameter specifies the domain controller that's used by this cmdlet to read data from or write data to Active Directory. You identify the domain controller by its fully qualified domain name...

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