似乎与标签关联的 RMS 保护模板已被删除或设置为已归档。您可以删除并重新创建该标签,或者您必须使用 AIP 服务 cmdlet 来调查您的模板之一是否已设置为存档或删除。
您可以使用Get-AIPServiceTemplate列出模板。模板的名称应与您的标签匹配。
如果模板设置为已存档,请使用 Set-AIPServeTemplate 将状态设置回已发布。如果模板不存在,您可以删除标签并重新开始(尽管很奇怪模板会被删除),或者您可以使用 PowerShell 更新保护设置。
本文档描述了如何通过 PowerShell 管理标签。你会做这样的事情:
get-label | where {$_.displayname -eq "TOP SECRET"} | fl displayname,labelactions
这将输出:
DisplayName : TOP SECRET
LabelActions : {{"Type":"encrypt","SubType":null,"Settings":[{"Key":"disabled","Value":"false"},{"Key":"protectiontype"
,"Value":"template"},{"Key":"templateid","Value":"0e7fea72-7bba-4438-a070-95c292cd6f8c"},{"Key":"templat
earchived","Value":"True"},{"Key":"linkedtemplateid","Value":"0e7fea72-7bba-4438-a070-95c292cd6f8c"},{"K
ey":"contentexpiredondateindaysornever","Value":"Never"},{"Key":"offlineaccessdays","Value":"-1"},{"Key"
:"rightsdefinitions","Value":"[{\"Identity\":\"miltor.onmicrosoft.com\",\"Rights\":\"VIEW,VIEWRIGHTSDATA
,DOCEDIT,EDIT,PRINT,EXTRACT,REPLY,REPLYALL,FORWARD,OBJMODEL\"},{\"Identity\":\"microsoft.com\",\"Rights\
":\"VIEW,VIEWRIGHTSDATA,OBJMODEL\"},{\"Identity\":\"test@milt0r.com\",\"Rights\":\"PROJECT\"}]"}]}, {"Ty
pe":"applycontentmarking","SubType":"header","Settings":[{"Key":"fontsize","Value":"10"},{"Key":"placeme
nt","Value":"Header"},{"Key":"text","Value":"Property of Contoso"},{"Key":"fontcolor","Value":"#000000"}
,{"Key":"margin","Value":"5"},{"Key":"alignment","Value":"Left"},{"Key":"disabled","Value":"false"}]}, {
"Type":"applycontentmarking","SubType":"footer","Settings":[{"Key":"fontsize","Value":"10"},{"Key":"plac
ement","Value":"Footer"},{"Key":"text","Value":"Property of Contoso"},{"Key":"fontcolor","Value":"#00000
0"},{"Key":"margin","Value":"5"},{"Key":"alignment","Value":"Left"},{"Key":"disabled","Value":"false"}]}
, {"Type":"applywatermarking","SubType":null,"Settings":[{"Key":"fontsize","Value":"10"},{"Key":"layout"
,"Value":"Diagonal"},{"Key":"fontcolor","Value":"#000000"},{"Key":"disabled","Value":"false"},{"Key":"te
xt","Value":"Property of Contoso"}]}}
在该 JSON 中,找到 linkedtemplateid: {"Key":"linkedtemplateid","Value":"0e7fea72-7bba-4438-a070-95c292cd6f8c"}
这就是应该存在于 RMS 中的模板 ID,以便为标签提供保护操作。如果不存在,请使用Add-AIPServiceTemplate创建新模板并通过Set-Label更新标签并提供EncryptionProtectionType和EncryptionRightsDefinitions。