Aracılığıyla paylaş


New-GlobalAddressList

 

Applies to: Exchange Server 2007 SP1, Exchange Server 2007 SP2, Exchange Server 2007 SP3

Use the New-GlobalAddressList cmdlet to create a new global address list (GAL).

Syntax

New-GlobalAddressList -Name <String> [-ConditionalCompany <MultiValuedProperty>] [-ConditionalCustomAttribute1 <MultiValuedProperty>] [-ConditionalCustomAttribute10 <MultiValuedProperty>] [-ConditionalCustomAttribute11 <MultiValuedProperty>] [-ConditionalCustomAttribute12 <MultiValuedProperty>] [-ConditionalCustomAttribute13 <MultiValuedProperty>] [-ConditionalCustomAttribute14 <MultiValuedProperty>] [-ConditionalCustomAttribute15 <MultiValuedProperty>] [-ConditionalCustomAttribute2 <MultiValuedProperty>] [-ConditionalCustomAttribute3 <MultiValuedProperty>] [-ConditionalCustomAttribute4 <MultiValuedProperty>] [-ConditionalCustomAttribute5 <MultiValuedProperty>] [-ConditionalCustomAttribute6 <MultiValuedProperty>] [-ConditionalCustomAttribute7 <MultiValuedProperty>] [-ConditionalCustomAttribute8 <MultiValuedProperty>] [-ConditionalCustomAttribute9 <MultiValuedProperty>] [-ConditionalDepartment <MultiValuedProperty>] [-ConditionalStateOrProvince <MultiValuedProperty>] [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-IncludedRecipients <Nullable>] [-TemplateInstance <PSObject>] [-UseRusServer <String>] [-WhatIf [<SwitchParameter>]]

New-GlobalAddressList -Name <String> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-RecipientFilter <String>] [-TemplateInstance <PSObject>] [-UseRusServer <String>] [-WhatIf [<SwitchParameter>]]

Detailed Description

The New-GlobalAddressList cmdlet creates a new GAL. The GAL is created under the Microsoft Exchange Organization configuration container in the Active Directory directory service.

To run the New-GlobalAddressList cmdlet, the account you use must be delegated the following:

  • Exchange Organization Administrator role

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Parameters

Parameter Required Type Description

Name

Required

System.String

The Name parameter specifies the name of the new GAL.

ConditionalCompany

Optional

Microsoft.Exchange.Data.MultiValuedProperty

The ConditionalCompany parameter sets the company attribute on the GAL.

ConditionalCustomAttribute1

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute10

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute11

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute12

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute13

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute14

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute15

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute2

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute3

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute4

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute5

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute6

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute7

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute8

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalCustomAttribute9

Optional

Microsoft.Exchange.Data.MultiValuedProperty

This parameter specifies custom attributes. You can use these attributes to store additional information.

ConditionalDepartment

Optional

Microsoft.Exchange.Data.MultiValuedProperty

The ConditionalDepartment parameter sets the company attribute on the GAL.

ConditionalStateOrProvince

Optional

Microsoft.Exchange.Data.MultiValuedProperty

The ConditionalStateOrProvince parameter sets the attribute in the GAL for the state or province. It takes multiple values as a comma-delimited list.

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm parameter causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm parameter.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory, include the DomainController parameter on the command.

IncludedRecipients

Optional

System.Nullable

The IncludedRecipients parameter sets the included recipients that are in the GAL.

RecipientFilter

Optional

System.String

The RecipientFilter parameter sets the recipients that are contained in the GAL. The RecipientFilter parameter cannot be used if any of the following parameters are specified:

  • IncludedRecipients

  • ConditionalCompany

  • ConditionalDepartment

  • ConditionalStateOrProvince

For more information about the filterable properties, see Filterable Properties for the -RecipientFilter parameter.

TemplateInstance

Optional

System.Management.Automation.PSObject

When an existing object is supplied to the TemplateInstance parameter, the command will use the configuration of that object to create an exact duplicate of the object on a local or target server.

UseRusServer

Optional

System.String

noteNote:
This parameter is available only in Exchange 2007 SP2.

The UseRusServer parameter instructs the command to use the specified Mailbox server on which the Address List service is running to obtain and then set mailbox and Active Directory user attributes.

The Address List service is a component in the Exchange System Attendant service. The Address List service creates and maintains Exchange-specific attribute values in Active Directory. You can use the Address List service to update recipient objects in a domain by using specific information, such as address list membership and e-mail addresses.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf parameter.

Input Types

Return Types

Errors

Error Description

Exceptions

Exceptions Description

Example

In this example, the New-GlobalAddressList command is used to create a new GAL named NewGAL.

New-GlobalAddressList -Name NewGAL