Commands › Exchange Online

Get-ClassificationRuleCollection

Exchange Online ExchangeOnlineManagement Get-*

View the classification rule collections in your organization. In the Microsoft Purview compliance portal, use the Get-DlpSensitiveInformationTypeRulePackage cmdlet.

Quick start script

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

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

Syntax

Get-ClassificationRuleCollection [[-Identity] <ClassificationRuleCollectionIdParameter>]
 [-DomainController <Fqdn>]
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity ClassificationRuleCollectionIdParameter The Identity parameter specifies the classification rule collection you want to view. You can use any value that uniquely identifies the classification rule collection. For example, you can specify the name, rule...
-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.