편집

Get-LdapDirectory

This cmdlet is available only in the cloud-based service.

Use the Get-LdapDirectory cmdlet to view LDAP directory configurations.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Syntax

Default

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

Identity

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

Description

You need to be assigned permissions before you can run this cmdlet. Although this article lists all parameters for the cmdlet, you might not have access to some parameters if they aren't included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.

Examples

Example 1

Get-LdapDirectory -Organization contoso.onmicrosoft.com

This example returns all LDAP directories that are configured for the contoso.onmicrosoft.com organization.

Example 2

Get-LdapDirectory -Organization contoso.onmicrosoft.com -Id FabrikamLdap

This example returns the LDAP directory named FabrikamLdap only in the contoso.onmicrosoft.com organization.

Parameters

-Id

Applicable: Exchange Online

The Id parameter specifies the unique identifier of the LDAP directory configuration that you want to view.

If you don't use this parameter, all configured LDAP directories in the organization are returned.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Identity
Position:1
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Organization

Applicable: Exchange Online

The Organization parameter specifies your organization where the LDAP directory configurations are stored (for example, contoso.onmicrosoft.com).

Parameter properties

Type:OrganizationIdParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.