logo
search
SharePoint Document Issues

How to Remove Encryption from SharePoint Sensitivity-Labeled Files

Maira MehtabMaira Mehtab Sep 27, 2026 869 views

Question details

The user needs to remove encryption or sensitivity labels from a file stored in SharePoint or OneDrive without using the Microsoft Information Protection client.

Product
Microsoft SharePoint
Device & OS
not provided
Scenario
Managing document security and decrypting files using PowerShell cmdlets in a Microsoft 365 environment.
Observed behavior
The user wants to successfully execute a PowerShell cmdlet to unlabel and decrypt a specified SharePoint document.
Before you start

Ensure you have the SharePoint Online Management Shell module installed and possess the necessary administrator permissions to execute cmdlets on your tenant's files.

Solution 1Recommended

Use the Unlock-SPOSensitivityLabelEncryptedFile Cmdlet

Run this PowerShell cmdlet to remove encryption or sensitivity labels from your SharePoint or OneDrive documents.

This method does not require the Microsoft Information Protection (MIP) client. It is effective for both encrypted files and files that are labeled but not encrypted.

1
Open PowerShell

Launch PowerShell on your computer as an Administrator.

2
Connect to SharePoint Online

Ensure the SharePoint Online Management Shell module is installed and connect to your SharePoint admin center.

3
Run the Decryption Cmdlet

Execute the following command, replacing the URL and justification with your specific details: Unlock-SPOSensitivityLabelEncryptedFile -FileUrl "https://contoso.com/sites/Marketing/Shared Documents/Doc1.docx" -JustificationText "Need to decrypt this file"

Non-encrypted Files: Based on testing, this cmdlet successfully removes the label even when the file is labeled but not currently encrypted.
Free Microsoft Office alternative

Try WPS Office for Seamless Document Management

While managing advanced SharePoint encryption requires Microsoft's PowerShell tools, WPS Office offers a lightweight, completely free alternative for handling your everyday document needs with native compatibility for Microsoft Office formats.

  1. 1. Download WPS Office: Visit the official WPS website to download the free installer.
  2. 2. Install the Suite: Run the lightweight installer and follow the quick setup wizard.
  3. 3. Open your Documents: Instantly open and edit your existing Microsoft Office files without formatting loss.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation that doesn't slow down your device.Familiar user interface requiring zero learning curve.Built-in cloud sync for easy file backup and sharing.
microsoft office alternative - wps office

Frequently Asked Questions

Does the Unlock-SPOSensitivityLabelEncryptedFile cmdlet require the MIP client?

No, it does not require the Microsoft Information Protection (MIP) client, but it does require you to have the SharePoint Online Management Shell module installed.

Will this cmdlet work on SharePoint files that are labeled but not encrypted?

Yes, testing confirms that the cmdlet can successfully remove the sensitivity label even if the file itself is not currently encrypted.

What information is needed to run the decryption command?

You will need the exact file URL within your SharePoint or OneDrive environment and a justification text string explaining why you are removing the encryption or label.