Test-PAMTrust

Verifies whether a trust relationship exists from the source forest to the PAM domain.

Syntax

Test-PAMTrust
    [-SourceForest] <String>
    [-CorpCredentials] <PSCredential>
    [[-PrivCredentials] <PSCredential>]
    [-Bidirectional]
    [<CommonParameters>]

Description

This command verifies whether a trust relationship still exists between domain in the source forest and the PAM domain. The trust would have been established by an earlier call to New-PAMTrust.

Examples

EXAMPLE 1

$sfc = Get-Credential ; $result = Test-PAMTrust -SourceForest "contoso.local" -CorpCredentials $sfc

Description


This cmdlet returns whether the trust relationship has been established with the source forest. Note that it requires authentication credentials for an administrator user in that forest.

EXAMPLE 2

$sfc = Get-Credential ; $pfc = Get-Credential ; $result = Test-PAMTrust -SourceForest "contoso.local" -CorpCredentials $sfc -PrivCredentials $pfc -Bidirectional

Description


This cmdlet returns whether the bidirectional trust relationship has been established with the source forest. Note that it requires authentication credentials for an administrator user in that forest and PAM domain.

Parameters

-Bidirectional

Switch Parameter to establish bidirectional trust between PAM domain from a domain and an existing forest.

Type:SwitchParameter
Position:4
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-CorpCredentials

Credentials to authenticate as an administrator to the existing forest.

Type:PSCredential
Position:2
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PrivCredentials

Credentials to authenticate as an administrator to the PAM domain

Type:PSCredential
Position:3
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SourceForest

Domain name of the root domain of the forest.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Outputs

bool