< Back
Get-ActiveDirectoryForestLDAP
Post
NAME Get-ActiveDirectoryForestLDAP
SYNOPSIS
Get the information about an Active Directory forest.
SYNTAX
Get-ActiveDirectoryForestLDAP [<CommonParameters>]
Get-ActiveDirectoryForestLDAP -Server <String> -Credential <PSCredential> [<CommonParameters>]
Get-ActiveDirectoryForestLDAP -Name <String> -Credential <PSCredential> [<CommonParameters>]
DESCRIPTION
Get the information about an Active Directory forest. The command runs on both joined and not joined computers and
against remove forests.
PARAMETERS
-Server <String>
The domain controller to use.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
The credentials to use. If not used, the current context credentials will be used.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
The name of the forest to get the information about. If not used, the current forest information will be
displayed.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------------------- Example 1 --------------------------
Get-ActiveDirectoryForestLDAP
Get information about the current forest.
Name : LAB.local
Sites :
Domains : {LAB.local}
ForestModeLevel : 6
ForestMode : Windows2012R2Forest
RootDomain : LAB.local
-------------------------- Example 2 --------------------------
Get-ActiveDirectoryForestLDAP -Server 10.0.0.11 -Credential $cred
Get information about the forest of the domain controller 10.0.0.11.
Name : LAB.local
Sites :
Domains : {LAB.local}
ForestModeLevel : 6
ForestMode : Windows2012R2Forest
RootDomain : LAB.local
RELATED LINKS
SYNOPSIS
Get the information about an Active Directory forest.
SYNTAX
Get-ActiveDirectoryForestLDAP [<CommonParameters>]
Get-ActiveDirectoryForestLDAP -Server <String> -Credential <PSCredential> [<CommonParameters>]
Get-ActiveDirectoryForestLDAP -Name <String> -Credential <PSCredential> [<CommonParameters>]
DESCRIPTION
Get the information about an Active Directory forest. The command runs on both joined and not joined computers and
against remove forests.
PARAMETERS
-Server <String>
The domain controller to use.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Credential <PSCredential>
The credentials to use. If not used, the current context credentials will be used.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
The name of the forest to get the information about. If not used, the current forest information will be
displayed.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
-------------------------- Example 1 --------------------------
Get-ActiveDirectoryForestLDAP
Get information about the current forest.
Name : LAB.local
Sites :
Domains : {LAB.local}
ForestModeLevel : 6
ForestMode : Windows2012R2Forest
RootDomain : LAB.local
-------------------------- Example 2 --------------------------
Get-ActiveDirectoryForestLDAP -Server 10.0.0.11 -Credential $cred
Get information about the forest of the domain controller 10.0.0.11.
Name : LAB.local
Sites :
Domains : {LAB.local}
ForestModeLevel : 6
ForestMode : Windows2012R2Forest
RootDomain : LAB.local
RELATED LINKS