New-PAMTrust
Establishes a trust of the PAM domain from a domain in an existing forest.
Syntax
Default (Default)
New-PAMTrust
[-SourceForest] <String>
[-Credentials] <PSCredential>
[-Bidirectional]
[<CommonParameters>]
Description
This command establishes a new trust relationship between domain in an existing forest and the PAM domain.
Examples
EXAMPLE 1
New-PAMTrust -SourceForest "contoso.local" -Credentials (Get-Credential)
This command establishes trust from an existing forest with a root domain with name "contoso.local" to the PAM domain. The user is prompted to provide administrator credentials to manage in that forest.
EXAMPLE 2
New-PAMTrust -SourceForest "contoso.local" -Credentials (Get-Credential) -Bidirectional
This command establishes bidirectional trust between "contoso.local" and PAM domain. The user is prompted to provide administrator credentials to manage in that forest.
Parameters
-Bidirectional
Switch Parameter to establish bidirectional trust between PAM domain from a domain and an existing forest.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 3 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Credentials
Credentials to authenticate as an administrator to the existing forest.
Parameter properties
Type: | PSCredential |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 2 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SourceForest
Domain name of the existing forest.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.