Commands › SharePoint Online
Unlock-SPOSensitivityLabelEncryptedFile
It removes encryption on a Sensitivity label encrypted file in SharePoint Online. No need to download the file.
Quick start script
# Unlock-SPOSensitivityLabelEncryptedFile — 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
Unlock-SPOSensitivityLabelEncryptedFile -FileUrl <String> -JustificationText <String> | Format-List
# 3. Export for evidence / drift tracking
Unlock-SPOSensitivityLabelEncryptedFile | Export-Clixml .\SPOSensitivityLabelEncryptedFile-$(Get-Date -Format yyyyMMdd).xml
Syntax
Unlock-SPOSensitivityLabelEncryptedFile [-FileUrl] <String> [-JustificationText] <String> [<CommonParameters>]
Parameters (2)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.