Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2012-11-15

Use the Get-GlobalAddressList cmdlet to return all the attributes of a global address list (GAL) or a set of GALs.

Syntax

Get-GlobalAddressList [-Identity <GlobalAddressListIdParameter>] [-DomainController <Fqdn>] [-Organization <OrganizationIdParameter>]
Get-GlobalAddressList -DefaultOnly <SwitchParameter> [-DomainController <Fqdn>] [-Organization <OrganizationIdParameter>]

Detailed Description

The Get-GlobalAddressList cmdlet is mainly used to populate the GAL property pages in the Exchange Management Console. This command doesn't provide a filtering capability. If filtering is required, you should use a WHERE clause with the command.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Global address lists" entry in the Mailbox Permissions topic.

Parameters

Parameter Required Type Description

DefaultOnly

Required

System.Management.Automation.SwitchParameter

The DefaultOnly parameter specifies the default GAL only.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory.

Identity

Optional

Microsoft.Exchange.Configuration.Tasks.GlobalAddressListIdParameter

The Identity parameter specifies the GUID, distinguished name (DN), or GAL name that represents a specific address list. You can also include the path by using the format Path\GlobalAddressListName.

You can omit the parameter label so that only the GAL name or GUID is supplied.

Organization

Optional

Microsoft.Exchange.Configuration.Tasks.OrganizationIdParameter

This parameter is available for multi-tenant deployments. It isn't available for on-premises deployments. For more information about multi-tenant deployments, see Multi-Tenant Support.

The Organization parameter specifies the organization in which you'll perform this action. This parameter doesn't accept wildcard characters, and you must use the exact name of the organization.

Input Types

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

Return Types

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

Examples

EXAMPLE 1

This example doesn't use parameters and returns all the attributes of all GALs.

Copy Code
Get-GlobalAddressList

EXAMPLE 2

This example uses the DefaultOnly parameter to return the default GAL only.

Copy Code
Get-GlobalAddressList -DefaultOnly