Skip to content

Commit 9652439

Browse files
authored
Merge pull request #6869 from SanjoyanM/patch-6
Patch 6
2 parents 795e9f8 + 4093f35 commit 9652439

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
---
2+
external help file: sharepointonline.xml
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://docs.microsoft.com/powershell/module/sharepoint-online/Unlock-SPOSensitivityLabelEncryptedFile
5+
applicable: SharePoint Online
6+
title: Unlock-SensitivityLabelEncryptedFile
7+
schema: 2.0.0
8+
author: Sanjoyan
9+
ms.author: samust
10+
ms.reviewer:
11+
---
12+
13+
# Unlock-SPOSensitivityLabelEncryptedFile
14+
15+
## SYNOPSIS
16+
17+
It removes encryption on a Sensitivity label encrypted file in SharePoint Online. No need to download the file.
18+
19+
## SYNTAX
20+
21+
```powershell
22+
Unlock-SPOSensitivityLabelEncryptedFile -FileUrl <absolute path for file> -JustificationText <needed for auditing>
23+
```
24+
25+
## DESCRIPTION
26+
27+
The `Unlock-SPOSensitivityLabelEncryptedFile` cmdlet runs on a single office online file that is encrypted via sensitivity label. It decrypts the file and removes the label from the file.
28+
29+
You must be a SharePoint Online administrator or Global Administrator to run the `Unlock-SPOSensitivityLabelEncryptedFile` cmdlet. Note, this cmdlet do not work on files that have labels with custom permission or user defined permission or double key encryption.
30+
31+
For permissions and the most current information about Windows PowerShell for SharePoint Online, see the online documentation at [Intro to SharePoint Online Management Shell](https://docs.microsoft.com/powershell/sharepoint/sharepoint-online/introduction-sharepoint-online-management-shell?view=sharepoint-ps).
32+
33+
## EXAMPLES
34+
35+
### -----------------------EXAMPLE 1-----------------------------
36+
37+
```powershell
38+
Unlock-SPOSensitivityLabelEncryptedFile -FileUrl "https://contoso.com/sites/Marketing/Shared Documents/Doc1.docx" -JustificationText "Need to recover this file"
39+
```
40+
41+
This example will remove a regular label with admin dedined encryption from the file Doc1.docx and also make an entry in audit logs.
42+
43+
## PARAMETERS
44+
45+
### -FileUrl
46+
47+
Full URL for the file.
48+
49+
```yaml
50+
Type: String
51+
Parameter Sets: (All)
52+
Aliases:
53+
Applicable: SharePoint Online
54+
55+
Required: True
56+
Position: Named
57+
Default value: None
58+
```
59+
60+
### -JustificationText
61+
62+
Text that explains the reason to run this cmdlet on the given file.
63+
64+
```yaml
65+
Type: String
66+
Parameter Sets: (All)
67+
Aliases:
68+
Applicable: SharePoint Online
69+
70+
Required: True
71+
Position: Named
72+
Default value: None
73+
```
74+
75+
## INPUTS
76+
77+
## OUTPUTS
78+
79+
## NOTES
80+
81+
## RELATED LINKS
82+
83+
[Getting started with SharePoint Online Management Shell](https://docs.microsoft.com/powershell/sharepoint/sharepoint-online/connect-sharepoint-online?view=sharepoint-ps)
84+
85+
[Get-SPOAppErrors](Get-SPOAppErrors.md)

0 commit comments

Comments
 (0)