Get-RMSTemplate

取得 RMS 範本的清單。

Syntax

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

Description

Get-RMSTemplate Cmdlet 會從 Rights Management 部署取得範本清單, (AD RMS 或 Azure RMS) ,然後可用來保護檔案。 使用此 Cmdlet 來識別您想要使用之範本的範本識別碼。

範例

範例 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