Export (0) Print
Expand All

Import-RmsTPD

Import-RmsTPD

Imports a TPD from a file in AD RMS.

Syntax

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




Detailed Description

The Import-RmsTPD cmdlet imports a trusted publishing domain (TPD) 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 path <PSDrive>:\TrustPolicy\TrustedPublishingDomain where <PSDrive> is the provider drive ID.

Parameters

-DisplayName<String>

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


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Force

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-PassThru

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

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.


Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Path<String[]>

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


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SourceFile<String>

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


Aliases

none

Required?

true

Position?

3

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.RightsManagementServices.PowerShell.TrustedPublishingDomainImportedItem

Examples

Example 1: Import a TPD and assign it a name

This command imports the TPD information stored in the specified file and assigns the name Fabrikam to the TPD. Because the Password parameter is not specified, the Import-RmsTPD cmdlet prompts for the domain password.


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

Example 2: Read a password and use it to import a TPD

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
C:\PS> Import-RmsTPD -Path "." -DisplayName "Fabrikam" -SourceFile "c:\transfer\fabrikam.xml" -Password $pswd

Related topics

Community Additions

ADD
Show:
© 2016 Microsoft