[This topic's current status is:
Content Complete.]
Applies to: Exchange Server 2010
Topic Last Modified: 2009-06-01
Use the Get-EmailAddressPolicy cmdlet to return all of the attributes on a policy or set of policies.
Get-EmailAddressPolicy [-Identity <EmailAddressPolicyIdParameter>] [-DomainController <Fqdn>] [-IncludeMailboxSettingOnlyPolicy <SwitchParameter>] [-Organization <OrganizationIdParameter>]
|
Parameter
|
Required
|
Type
|
Description
|
|---|
|
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.EmailAddressPolicyIdParameter
|
The Identity parameter specifies the GUID, distinguished name (DN), or e-mail address policy name that represents a specific e-mail address policy. You can also include the path using the format Path\EmailAddressPolicy.
You can omit the parameter label Identity so that only the GUID, DN, or e-mail address policy name is supplied.
|
|
IncludeMailboxSettingOnlyPolicy
|
Optional
|
System.Management.Automation.SwitchParameter
|
The IncludeMailboxSettingOnlyPolicy parameter retrieves Microsoft Exchange Server 2003 e-mail address policies that contain only mailbox management configuration. Microsoft Exchange Server 2010 supports both policies that contain only e-mail address policy settings, and policies that contain e-mail address policy settings and mailbox management configuration. Exchange 2010 doesn't support policies that contain only mailbox management configuration, but Exchange 2003 policies that contain only mailbox management configuration are, by default, preserved and not upgraded. The IncludeMailboxSettingOnlyPolicy parameter is required to retrieve these policies.
The attributes of e-mail address policies that contain only mailbox management configuration can't be modified in Exchange 2010. These policies can only be removed.
|
|
Organization
|
Optional
|
Microsoft.Exchange.Configuration.Tasks.OrganizationIdParameter
|
The Organization parameter is reserved for internal Microsoft use.
|
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 "E-mail address policy" entry in the Mailbox Permissions topic.
This example retrieves the attributes for Email Address Policy 1.
Get-EmailAddressPolicy -Identity "Email Address Policy 1"