若要保留標記中新增或移除保留標記的保留原則Add retention tags to or remove retention tags from a retention policy

您可以新增至保留原則原則會在建立時的保留標記或任何時候之後。如需如何建立保留原則的詳細資訊,包括如何同時新增保留標記,請參閱Create a Retention PolicyYou can add retention tags to a retention policy when the policy is created or any time thereafter. For details about how to create a retention policy, including how to simultaneously add retention tags, see Create a Retention Policy.

保留原則可以包含下列保留標記:A retention policy can contain the following retention tags:

  • 一個或多個受支援預設資料夾的保留原則標記 (RPT)One or more retention policy tags (RPTs) for supported default folders

  • 搭配 [移至封存] 動作的一個預設原則標記 (DPT)One default policy tag (DPT) with the Move to Archive action

  • 一個含 [刪除並允許復原][永久刪除] 動作的 DPTOne DPT with the Delete and Allow Recovery or the Permanently Delete action

  • 一個語音郵件 DPTOne DPT for voice mail

  • 任意數目的個人標記Any number of personal tags

如需保留標記的詳細資訊,請參閱保留標記和保留原則For more information about retention tags, see Retention tags and retention policies.

開始之前有哪些須知?What do you need to know before you begin?

  • 預估完成時間: 10 分鐘。Estimated time to completion: 10 minutes.

  • 您必須獲得權限才能執行此程序或程序。若您需要哪些權限,請參閱Mailbox Permissions主題中的 「 通訊記錄管理 」 項目。You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Messaging records management" entry in the Mailbox Permissions topic.

  • 除非它們連結至保留原則和受管理的資料夾助理員處理的信箱保留標記不會套用至信箱。若要啟動受管理的資料夾助理員,它會處理信箱,請參閱設定及執行 Exchange 2016 中受管理的資料夾助理員Retention tags aren't applied to a mailbox until they're linked to a retention policy and the Managed Folder Assistant processes the mailbox. To start the Managed Folder Assistant so that it processes a mailbox, see Configure and run the Managed Folder Assistant in Exchange 2016.

  • 如需適用於此主題中程序的快速鍵相關資訊,請參閱 Exchange 系統管理中心的鍵盤快速鍵For information about keyboard shortcuts that may apply to the procedures in this topic, see Keyboard shortcuts in the Exchange admin center.

提示

有問題嗎?尋求 Exchange 論壇中的協助。請造訪在Exchange ServerExchange OnlineExchange Online Protection論壇。Having problems? Ask for help in the Exchange forums. Visit the forums at Exchange Server,Exchange Online, or Exchange Online Protection.

您要執行的工作What do you want to do?

使用 EAC 來新增或移除保留標記Use the EAC to add or remove retention tags

  1. 移至 [相符性管理 > 保留原則Go to Compliance management > Retention policies.

  2. 在清單檢視中,選取您要新增保留標記,然後按一下 [編輯的保留原則編輯圖示In the list view, select the retention policy to which you want to add retention tags and then click EditEdit icon.

  3. 在 [保留原則]**** 中,使用下列設定:In Retention Policy, use the following settings:

    • 新增新增圖示按一下此按鈕可新增至原則的保留標記。AddAdd Icon Click this button to add a retention tag to the policy.

    • 移除移除圖示從清單中選取標籤,然後按一下 [此按鈕可從原則移除標籤。RemoveRemove icon Select a tag from the list, and then click this button to remove the tag from the policy.

使用命令介面來新增或移除保留標記Use the Shell to add or remove retention tags

此範例會將保留標記 VPs-Default、VPs-Inbox 及 VPs-DeletedItems,新增至尚未與保留標記連結的保留原則 RetPolicy-VPs。This example adds the retention tags VPs-Default, VPs-Inbox, and VPs-DeletedItems to the retention policy RetPolicy-VPs, which doesn't already have retention tags linked to it.

警告

如果該原則具有與其連結的保留標記,此命令將會取代現有標記。If the policy has retention tags linked to it, this command replaces the existing tags.

Set-RetentionPolicy -Identity "RetPolicy-VPs" -RetentionPolicyTagLinks "VPs-Default","VPs-Inbox","VPs-DeletedItems"

此範例會將保留標記 VPs-DeletedItems 新增到保留原則 RetPolicy-VPs,此原則已有連結的其他保留標記。This example adds the retention tag VPs-DeletedItems to the retention policy RetPolicy-VPs, which already has other retention tags linked to it.

$TagList = (Get-RetentionPolicy "RetPolicy-VPs").RetentionPolicyTagLinks
$TagList.Add((Get-RetentionPolicyTag 'VPs-DeletedItems').DistinguishedName)
Set-RetentionPolicy "RetPolicy-VPs" -RetentionPolicyTagLinks $TagList

此範例會從保留原則 RetPolicy-VPs 移除保留標記 VPs-Inbox。This example removes the retention tag VPs-Inbox from the retention policy RetPolicy-VPs.

$TagList = (Get-RetentionPolicy "RetPolicy-VPs").RetentionPolicyTagLinks
$TagList.Remove((Get-RetentionPolicyTag 'VPs-Inbox').DistinguishedName)
Set-RetentionPolicy "RetPolicy-VPs" -RetentionPolicyTagLinks $TagList

如需詳細的語法及參數資訊,請參閱 set-RetentionPolicyget-RetentionPolicyFor detailed syntax and parameter information, see set-RetentionPolicy and get-RetentionPolicy.

如何知道這是否正常運作?How do you know this worked?

若要確認您已順利新增或移除保留標記保留原則中,使用Get-retentionpolicy指令程式來確認_RetentionPolicyTagLinks_屬性。To verify that you have successfully added or removed a retention tag from a retention policy, use the get-RetentionPolicy cmdlet to verify the RetentionPolicyTagLinks property.

此範例使用 Get-RetentionPolicy 指令程式來擷取新增至預設 MRM 原則的保留標記,並將他們以管線傳輸至 Format-Table 指令程式,以輸出每個標記的名稱屬性。This example use the Get-RetentionPolicy cmdlet to retrieve retention tags added to the Default MRM Policy and pipes them to the Format-Table cmdlet to output only the name property of each tag.

(Get-RetentionPolicy "Default MRM Policy").RetentionPolicyTagLinks | Format-Table name