Import-RmsTUD

Import-RmsTUD

Imports a trusted user domain (TUDs) from a file in Active Directory Rights Management Services (AD RMS) or specifies to trust Microsoft account IDs.

Syntax

Parameter Set: EnterpriseTUD
Import-RmsTUD [-Path] <String[]> [-DisplayName] <String> [-SourceFile] <String> [[-TrustADFederatedUser]] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: WindowsLiveID
Import-RmsTUD [-Path] <String[]> [-WindowsLiveId] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Import-RmsTUD cmdlet imports an enterprise trusted user domain (TUD) from a file in Active Directory Rights Management Services (AD RMS) or it specifies to trust a Microsoft account ID.

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

To trust a Microsoft account ID, specify the WindowsLiveID parameter, and set the Path parameter to the AD RMS provider drive subpath “<PSDrive>:\TrustPolicy\TrustedUserDomain”

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

-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

-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.

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

-TrustADFederatedUser

Specifies to trust Active Directory Federation Services (ADFS) users.

Aliases

none

Required?

false

Position?

4

Default Value

none

Accept Pipeline Input?

true (ByValue, ByPropertyName)

Accept Wildcard Characters?

false

-WindowsLiveId

Specifies to trust Microsoft account IDs.

Aliases

none

Required?

true

Position?

2

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: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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.TrustedUserDomainImportedItem

Examples

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

This command imports the TUD information stored in the specified file and assigns the name Fabrikam to the TUD.

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

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

This command configures the AD RMS cluster to trust Microsoft account IDs.

C:\PS>Import-RmsTUD -Path . -WindowsLiveId

Export-RmsTUD

com/fwlink/?LinkId=136806