Unlock-SPOSensitivityLabelEncryptedFile

它會移除 SharePoint Online 中敏感度標籤加密檔案上的加密。 不需要下載檔案。

Syntax

Unlock-SPOSensitivityLabelEncryptedFile
      -FileUrl <absolute path for file>
      -JustificationText <needed for auditing>

Description

Cmdlet 會 Unlock-SPOSensitivityLabelEncryptedFile 在透過敏感度標籤加密的單一 Office 線上檔案上執行。 它會解密檔案,並從檔案中移除標籤。

您必須是 SharePoint Online 系統管理員或全域管理員,才能執行 Cmdlet Unlock-SPOSensitivityLabelEncryptedFile 。 請注意,此 Cmdlet 不適用於具有自訂許可權標籤、使用者定義許可權或雙金鑰加密的檔案。

如需有關適用於 SharePoint Online 的 Windows PowerShell 權限和最新資訊,請參閱位於 SharePoint Online Management Shell 簡介的線上文件。

範例

-----------------------範例 1-----------------------------

Unlock-SPOSensitivityLabelEncryptedFile -FileUrl "https://contoso.com/sites/Marketing/Shared Documents/Doc1.docx" -JustificationText "Need to recover this file"

此範例會從檔案Doc1.docx中移除具有系統管理員定義加密的一般標籤,也會在稽核記錄中建立專案。

參數

-FileUrl

檔案的完整 URL。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-JustificationText

說明在指定檔案上執行此 Cmdlet 原因的文字。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online