Import-RmsTPD

Import-RmsTPD is accessible with the help of ADRMSAdmin module. To install ADRMSAdmin on your system please refer to this ADRMSAdmin.

Synopsis

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

Description

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 “:\TrustPolicy\TrustedPublishingDomain” where is the provider drive ID.

Parameters

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

    Required?                    true
    Position?                    2
    Default value                
    Accept pipeline input?       true (ByValue, ByPropertyName)
    Accept wildcard characters?  false

-Force <SwitchParameter>
    Overrides restrictions that prevent the command from succeeding, just so the changes do not compromise security.

    Required?                    false
    Position?                    named
    Default value                
    Accept pipeline input?       true (ByValue, ByPropertyName)
    Accept wildcard characters?  false

-PassThru <SwitchParameter>
    Passes the object created by this cmdlet through the pipeline. By default, this cmdlet does not pass any objects through the pipeline.

    Required?                    false
    Position?                    named
    Default value                
    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.

    Required?                    true
    Position?                    3
    Default value                
    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. This parameter is required. Use a dot (.) to specify the current location. This parameter does not accept wildcards and has no default value.

    Required?                    true
    Position?                    1
    Default value                
    Accept pipeline input?       false
    Accept wildcard characters?  false

-SourceFile <String>
    Specifies the path to the file that contains the domain information to import.

    Required?                    true
    Position?                    3
    Default value                
    Accept pipeline input?       true (ByValue, ByPropertyName)
    Accept wildcard characters?  false

-Confirm <SwitchParameter>
    Prompts you for confirmation before running the cmdlet.

    Required?                    false
    Position?                    named
    Default value                false
    Accept pipeline input?       false
    Accept wildcard characters?  false

-WhatIf <SwitchParameter>
    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

Syntax

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

————– EXAMPLE 1 ————–
C:\PS>Import-TPD -Path . -DisplayName TOSSolution -SourceFile c:\transfer\TOSSolution.xml
This command imports the TPD information stored in the specified file and assigns the name TOSSolution to the TPD. Note that because the Password parameter was not used, the Import-TPD cmdlet prompts for the domain password.

————– EXAMPLE 2 ————–
C:\PS>$pswd = Read-Host -Prompt “Password:” -AsSecureString
Import-RmsTPD -Path . -DisplayName TOSSolution -SourceFile c:\transfer\TOSSolution.xml -Password $pswd
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.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Import-RmsTPD

Get-Command Import-RmsTPD powershell script command cmdlet adrmsadmin

You can also read about

  • Export-RmsTPD

To know more PowerShell cmdlets(Commands) on ADRMSAdmin (Active Directory Rights Management Services Admin) click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Leave a Reply

Your email address will not be published. Required fields are marked *