Commands › SharePoint Online

Get-FileSensitivityLabelInfo

SharePoint Online Microsoft.Online.SharePoint.PowerShell Get-*

Extracts and displays the sensitivity label related information attached to an office file stored in SharePoint.

Quick start script

# Get-FileSensitivityLabelInfo — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Get-FileSensitivityLabelInfo -FileUrl <String> | Format-List

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

Syntax

Get-FileSensitivityLabelInfo [-FileUrl] <String> [<CommonParameters>]

Parameters (1)

ParameterTypeRequiredWhat it controls
-FileUrl String yes Full URL for the file.

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