Commands › SharePoint Online

Unlock-SPOSensitivityLabelEncryptedFile

SharePoint Online Microsoft.Online.SharePoint.PowerShell Unlock-*

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)

ParameterTypeRequiredWhat it controls
-FileUrl String yes Full URL for the file.
-JustificationText String yes Text that explains the reason to run this cmdlet on the given file.

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