向保留策略添加保留标记或从中删除保留标记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 cmdlet 验证_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 cmdlet 检索添加到“默认 MRM 策略”的保留标记,然后将这些标记传递给 Format-Table cmdlet,从而仅输出每个标记的名称属性。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