Commands › Exchange Online

Get-LdapDirectory

Exchange Online ExchangeOnlineManagement Get-*

View LDAP directory configurations.

Quick start script

# Get-LdapDirectory — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-LdapDirectory -Organization <OrganizationIdParameter> | Format-List

# 3. Export for evidence / drift tracking
Get-LdapDirectory | Export-Clixml .\LdapDirectory-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

Default

Get-LdapDirectory -Organization <OrganizationIdParameter>
 [<CommonParameters>]

Identity

Get-LdapDirectory [[-Id] <String>] -Organization <OrganizationIdParameter>
 [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Id String The Id parameter specifies the unique identifier of the LDAP directory configuration that you want to view.
-Organization OrganizationIdParameter yes The Organization parameter specifies your organization where the LDAP directory configurations are stored (for example, contoso.onmicrosoft.com).

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.