Import-RmsTPD
Import-RmsTPD
Imports a trusted publishing domain (TPD) from a file in Active Directory Rights Management Services (AD RMS).
Sintaxis
Parameter Set: Default
Import-RmsTPD [-Path] <String[]> [-DisplayName] <String> [-Password] <SecureString> [-SourceFile] <String> [-Force] [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
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.
Parámetros
-DisplayName<String>
Specifies the name that will be used to identify the domain being imported.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Force
Overrides restrictions that prevent the command from succeeding, just so the changes do not compromise security.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-PassThru
Passes the object created by this cmdlet through the pipeline. By default, this cmdlet does not pass any objects through the pipeline.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
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.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
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.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-SourceFile<String>
Specifies the path to the file that contains the domain information to import.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue, ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- Microsoft.RightsManagementServices.PowerShell.TrustedPublishingDomainImportedItem
Ejemplos
-------------- 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