Commands › Exchange Online

Test-DataClassification

Exchange Online ExchangeOnlineManagement Test-*

Find the confidence and count of a sensitive information type that's found in a specified text string.

Quick start script

# Test-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
Test-DataClassification | Format-List

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

Syntax

Test-DataClassification
 [-ClassificationNames <String[]>]
 [[-DiagnosticPlatform] <DiagnosticPlatform>]
 [[-DiagnosticPurpose] <DiagnosticPurpose>]
 [-DomainController <Fqdn>]
 [-FileExtension <String>]
 [-TestTextExtractionResults <TestTextExtractionResult[]>]
 [-TextToClassify <String>]
 [<CommonParameters>]

Parameters (7)

ParameterTypeRequiredWhat it controls
-ClassificationNames String[] The ClassificationNames parameter specifies the sensitive information type that you want to find in the text specified by the TextToClassify parameter. Valid values are:
-DiagnosticPlatform DiagnosticPlatform This parameter is available only in cloud-based environments.
-DiagnosticPurpose DiagnosticPurpose This parameter is available only in cloud-based environments.
-DomainController Fqdn This parameter is functional only in on-premises Exchange.
-FileExtension String This parameter is available only in the cloud-based service.
-TestTextExtractionResults TestTextExtractionResult[] The TestTextExtractionResults parameter specifies the extracted text from the Test-TextExtraction cmdlet as the input text stream.
-TextToClassify String The TextToClassify parameter specifies the text string for which classification results need to be shown.

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