Commands › Exchange Online

Get-AutoSensitivityLabelPolicy

Exchange Online ExchangeOnlineManagement Get-*

For more information, see Security & Compliance PowerShell. Use the Get-AutoSensitivityLabelPolicy cmdlet to view auto-labeling policies in your organization.

Quick start script

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

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

Syntax

Get-AutoSensitivityLabelPolicy [[-Identity] <PolicyIdParameter>]
 [-DistributionDetail]
 [-ForceValidate <Boolean>]
 [-IncludeProgressFeedback]
 [-IncludeTestModeResults <Boolean>]
 [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-Identity PolicyIdParameter The Identity parameter specifies the auto-labeling policy that you want to view. You can use any value that uniquely identifies the policy. For example:
-DistributionDetail SwitchParameter The DistributionDetail switch returns detailed policy distribution information in the DistributionResults property. You don't need to specify a value with this switch.
-ForceValidate Boolean The ForceValidate parameter specifies whether to include details related to the AdminUnits of users, groups, or sites in the policy. Valid values are:
-IncludeProgressFeedback SwitchParameter IncludeProgressFeedback specifies whether to include the labeling progress of files in SharePoint or OneDrive. You don't need to specify a value with this switch.
-IncludeTestModeResults Boolean The IncludeTestModeResults parameter specifies whether to include the status of test mode in the policy details. Valid values are:

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