Import-RmsTPD

Import-RmsTPD

Imports a trusted publishing domain (TPD) from a file in Active Directory Rights Management Services (AD RMS).

構文

Parameter Set: Default
Import-RmsTPD [-Path] <String[]> [-DisplayName] <String> [-Password] <SecureString> [-SourceFile] <String> [-Force] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Import-RmsTPD cmdlet imports a trusted publishing domain from a file in Active Directory Rights Management Services (AD RMS).

To perform the import, specify the DisplayName, SourceFile and Password parameters, and then set the Path parameter to the AD RMS provider drive subpath “<PSDrive>:\TrustPolicy\TrustedPublishingDomain” where <PSDrive> is the provider drive ID.

パラメーター

-DisplayName<String>

Specifies the name that will be used to identify the domain being imported.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

true (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Force

Overrides restrictions that prevent the command from succeeding, just so the changes do not compromise security.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-PassThru

Passes the object created by this cmdlet through the pipeline. By default, this cmdlet does not pass any objects through the pipeline.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Password<SecureString>

Specifies a password as a SecureString object. To create a SecureString object that contains a password, use the Read-Host cmdlet and specify the AsSecureString parameter.

エイリアス

なし

必須?

true

位置は?

3

既定値

なし

パイプライン入力を許可する

true (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Path<String[]>

Specifies a provider drive and path or relative path on the current drive. This parameter is required. Use a dot (.) to specify the current location. This parameter does not accept wildcards and has no default value.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-SourceFile<String>

Specifies the path to the file that contains the domain information to import.

エイリアス

なし

必須?

true

位置は?

3

既定値

なし

パイプライン入力を許可する

true (ByValue, ByPropertyName)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • Microsoft.RightsManagementServices.PowerShell.TrustedPublishingDomainImportedItem

-------------- EXAMPLE 1 --------------

This command imports the TPD information stored in the specified file and assigns the name Fabrikam to the TPD. Note that because the Password parameter was not used, the Import-TPD cmdlet prompts for the domain password.

C:\PS>Import-TPD -Path . -DisplayName Fabrikam -SourceFile c:\transfer\fabrikam.xml

-------------- EXAMPLE 2 --------------

This command uses the Read-Host cmdlet to prompt the user for a password and then stores the password in a variable that is passed to the Import-RmsTPD cmdlet.

C:\PS>$pswd = Read-Host -Prompt "Password:" -AsSecureString
Import-RmsTPD -Path . -DisplayName Fabrikam -SourceFile c:\transfer\fabrikam.xml -Password $pswd

関連トピック

Export-RmsTPD

Using Windows PowerShell with AD RMS