< Back

Get-ActiveDirectoryDomainLDAP

Mon Jan 13, 2020 6:02 am

NAME Get-ActiveDirectoryDomainLDAP



SYNOPSIS

Get the information about an Active Directory domain.





SYNTAX

Get-ActiveDirectoryDomainLDAP [<CommonParameters>]



Get-ActiveDirectoryDomainLDAP -Server <String> -Credential <PSCredential> [<CommonParameters>]



Get-ActiveDirectoryDomainLDAP -Name <String> -Credential <PSCredential> [<CommonParameters>]





DESCRIPTION

Get the information about an Active Directory domain. The command runs on both joined and not joined computers and

against remove forests.





PARAMETERS

-Server <String>

The server 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 credentials of the current user will be used.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

The name of the domain to get information about. If not used, the current domain will be used.



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-ActiveDirectoryDomainLDAP



Get information about the current domain.







Name Forest DomainModeLevel DomainMode

---- ------ --------------- ----------

LAB.local LAB.local 6 Windows2012R2Domain



-------------------------- Example 2 --------------------------



Get-ActiveDirectoryDomainLDAP -Server 10.0.0.11 -Credential $cred



Get information about the domain of the domain controller 10.0.0.11







Name Forest DomainModeLevel DomainMode

---- ------ --------------- ----------

LAB.local LAB.local 6 Windows2012R2Domain





RELATED LINKS