你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-RMSTemplate

获取 RMS 模板的列表。

语法

Get-RMSTemplate
   [-RmsServer <String>]
   [-Force]
   [-Culture <String>]
   [<CommonParameters>]

说明

Get-RMSTemplate cmdlet 从 Rights Management 部署 (AD RMS 或 Azure RMS) 获取模板列表,然后可用于保护文件。 使用此 cmdlet 标识要使用的模板的模板 ID。

示例

示例 1:获取模板列表

PS C:\>Get-RMSTemplate
TemplateId        : {0e36001f-a341-49f2-aad5-be4937cd391d}

CultureInfo       : en-US
Description       : This content is proprietary information intended for internal users only. This content cannot be modified.

Name              : Contoso, Ltd - Confidential View Only

IssuerDisplayName : Contoso, Ltd

FromTemplate      : True



TemplateId        : {e6ee2481-26b9-45e5-b34a-f744eacd53b0}

CultureInfo       : en-US

Description       : This content is proprietary information intended for internal users only. This content can be modified but cannot be copied and printed.

Name              : Contoso, Ltd - Confidential

IssuerDisplayName : Contoso, Ltd

FromTemplate      : True

TemplateId        : {1e9f7d73-51f8-4e5b-93b5-696d252697c3}

CultureInfo       : en-US

Description       : This content is restricted to the Sales & Marketing department, read and print

Name              : Sales and Marketing - Read and Print Only

IssuerDisplayName : Contoso, Ltd

FromTemplate      : True

此命令获取计算机以前从 Azure RMS 或默认 AD RMS 部署下载的模板列表。 从输出中,复制要用于保护文件的模板的 TemplateId 值。

示例 2:获取特定区域设置模板列表 (法语)

PS C:\>Get-RMSTemplate -Culture "fr-fr"
TemplateId        : {e6ee2481-26b9-45e5-b34a-f744eacd53b0}
CultureInfo       : fr-FR
Description       : Ce document contient des informations confidentielles destinees a un usage interne uniquement. Il
                    peut etre modifie, mais ne peut etre ni copie ni imprime.
Name              : Contoso, Ltd - Confidentiel
IssuerDisplayName : Contoso, Ltd
FromTemplate      : True

TemplateId        : {1e9f7d73-51f8-4e5b-93b5-696d252697c }
CultureInfo       : fr-FR
Description       : Ce document contient des informations confidentielles destinees a un usage interne uniquement. Il
                    ne peut pas etre modifie.
Name              : Contoso, Ltd - Affichage confidentiel uniquement
IssuerDisplayName : Contoso, Ltd
FromTemplate      : True

此命令获取法语区域设置的模板列表。

参数

-Culture

指定使用语言区域代码对按区域设置加载的模板,其中语言是 ISO-639 语言代码,区域是 ISO 3166-1 国家或地区标识符 (,例如 en-us、fr-fr 或 es-es) 。 如果未指定此参数,或者指定此参数而不指定值,则返回同一模板的所有可用语言版本。

若要加载不同区域设置的模板,请使用语言区域代码对将其指定为具有此参数的值。 例如,如果你在加拿大,并且当前系统区域设置设置为英语,但你想要在法语中看到模板名称和说明,请指定 -Culture "fr-fr"

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

指示此 cmdlet 直接从 Azure RMS 服务或 AD RMS 服务器下载模板,而不是在计算机上使用可能过期的缓存模板。

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RmsServer

指定运行 AD RMS 时要获取模板的 RMS 服务器或群集的名称。

此参数不适用于 Azure RMS。

如果未指定服务器,cmdlet 将使用服务发现从计算机的默认 Rights Management 部署中获取模板列表。 通常,仅当有多个 AD RMS 或服务发现部署找不到 AD RMS 服务器时,才需要指定此参数。 如果不确定要指定的服务器名称,请使用 Get-RMSServer cmdlet。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False