Test-PAMTrust

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

Syntax

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

Description

The Test-PAMTrust cmdlet verifies whether a trust relationship exists from source forest in the Privileged Access Management (PAM) domain. The trust relationship needed to be established by an earlier call to New-PAMTrust.

Examples

Example 1: Validate the trust relationship with another forest

PS C:\> $SFC = Get-Credential ; $Result = Test-PAMTrust -SourceForest "contoso.local" -Credentials $SFC

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

Required Parameters

-CorpCredentials

Credentials to authenticate as an administrator to the existing forest.

Type:PSCredential
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SourceForest

Specifies the NetBIOS domain name of the root domain of the forest.

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

Optional 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
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
Accept pipeline input:False
Accept wildcard characters:False

Outputs

bool