--- external help file: PSAD-help.xml online version: https://github.com/zloeber/PSAD schema: 2.0.0
Get-DSForestTrust
SYNOPSIS
Retrieve an ADSI forest object.
SYNTAX
Get-DSForestTrust [[-Identity] <String>] [[-ComputerName] <String>] [[-Credential] <PSCredential>]
DESCRIPTION
Retrieve an ADSI forest object.
EXAMPLES
-------------------------- EXAMPLE 1 --------------------------
Get-DSForestTrust
Gets the forest trusts for the domain the host is corrently joined to or that was previously connected to via Connect-DSAD.
PARAMETERS
-Identity
Forest name to retreive.
Type: String
Parameter Sets: (All)
Aliases: Name, Forest, ForestName
Required: False
Position: 1
Default value: ($Script:CurrentForest).name
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-ComputerName
Fully Qualified Name of a remote domain controller to connect to.
Type: String
Parameter Sets: (All)
Aliases: Server, ServerName
Required: False
Position: 2
Default value: $Script:CurrentServer
Accept pipeline input: False
Accept wildcard characters: False
-Credential
Alternate credentials for retrieving forest information.
Type: PSCredential
Parameter Sets: (All)
Aliases: Creds
Required: False
Position: 3
Default value: $Script:CurrentCredential
Accept pipeline input: False
Accept wildcard characters: False
INPUTS
OUTPUTS
System.DirectoryServices.ActiveDirectory.ForestTrust
NOTES
Author: Zachary Loeber