New-EmailAddressPolicy (RTM)

 

適用版本: Exchange Server 2007

上次修改主題的時間: 2007-06-05

使用 New-EmailAddressPolicy 指令程式,可建立新的電子郵件地址原則。

語法

New-EmailAddressPolicy -Name <String> -EnabledPrimarySMTPAddressTemplate <String> -IncludedRecipients <Nullable> [-ConditionalCompany <MultiValuedProperty>] [-ConditionalCustomAttribute1 <String>] [-ConditionalCustomAttribute10 <String>] [-ConditionalCustomAttribute11 <String>] [-ConditionalCustomAttribute12 <String>] [-ConditionalCustomAttribute13 <String>] [-ConditionalCustomAttribute14 <String>] [-ConditionalCustomAttribute15 <String>] [-ConditionalCustomAttribute2 <String>] [-ConditionalCustomAttribute3 <String>] [-ConditionalCustomAttribute4 <String>] [-ConditionalCustomAttribute5 <String>] [-ConditionalCustomAttribute6 <String>] [-ConditionalCustomAttribute7 <String>] [-ConditionalCustomAttribute8 <String>] [-ConditionalCustomAttribute9 <String>] [-ConditionalDepartment <MultiValuedProperty>] [-ConditionalStateOrProvince <MultiValuedProperty>] [-DomainController <Fqdn>] [-Priority <EmailAddressPolicyPriority>] [-TemplateInstance <PSObject>]

New-EmailAddressPolicy -Name <String> -EnabledPrimarySMTPAddressTemplate <String> -RecipientFilter <String> [-DomainController <Fqdn>] [-Priority <EmailAddressPolicyPriority>] [-TemplateInstance <PSObject>]

New-EmailAddressPolicy -Name <String> -EnabledEmailAddressTemplates <ProxyAddressTemplateCollection> -RecipientFilter <String> [-DisabledEmailAddressTemplates <ProxyAddressTemplateCollection>] [-DomainController <Fqdn>] [-Priority <EmailAddressPolicyPriority>] [-TemplateInstance <PSObject>]

New-EmailAddressPolicy -Name <String> -EnabledEmailAddressTemplates <ProxyAddressTemplateCollection> -IncludedRecipients <Nullable> [-ConditionalCompany <MultiValuedProperty>] [-ConditionalCustomAttribute1 <String>] [-ConditionalCustomAttribute10 <String>] [-ConditionalCustomAttribute11 <String>] [-ConditionalCustomAttribute12 <String>] [-ConditionalCustomAttribute13 <String>] [-ConditionalCustomAttribute14 <String>] [-ConditionalCustomAttribute15 <String>] [-ConditionalCustomAttribute2 <String>] [-ConditionalCustomAttribute3 <String>] [-ConditionalCustomAttribute4 <String>] [-ConditionalCustomAttribute5 <String>] [-ConditionalCustomAttribute6 <String>] [-ConditionalCustomAttribute7 <String>] [-ConditionalCustomAttribute8 <String>] [-ConditionalCustomAttribute9 <String>] [-ConditionalDepartment <MultiValuedProperty>] [-ConditionalStateOrProvince <MultiValuedProperty>] [-DisabledEmailAddressTemplates <ProxyAddressTemplateCollection>] [-DomainController <Fqdn>] [-Priority <EmailAddressPolicyPriority>] [-TemplateInstance <PSObject>]

詳細描述

使用 New-EmailAddressPolicy 指令程式,可建立新的電子郵件地址原則並套用它。新的電子郵件地址原則會建立在 Active Directory 目錄服務中的 Microsoft Exchange 組織組態容器之下。

若要執行 New-EmailAddressPolicy 指令程式,必須對您使用的帳戶委派下列項目:

  • Exchange 組織系統管理員角色

如需管理 Exchange Server 2007 所需之權限、委派角色及權利的相關資訊,請參閱權限考量

參數

參數 必要 類型 描述

EnabledEmailAddressTemplates

必要

Microsoft.Exchange.Data.ProxyAddressTemplateCollection

EnabledEmailAddressTemplates 參數可指定已納入電子郵件地址原則並已啟用的 Proxy 位址。以逗號分隔多個值。每一個 Proxy 位址的網域部份都需要符合現有公認的網域。

EnabledPrimarySMTPAddressTemplate

必要

System.String

EnabledPrimarySMTPAddressTemplate 參數會指定要啟用並納入電子郵件地址原則的 Proxy 位址。每一個 Proxy 位址的網域部份都需要符合現有公認的網域。

IncludedRecipients

必要

System.Nullable

IncludedRecipients 參數可篩選用來設定電子郵件地址原則的收件者。AllRecipients 值只能單獨使用。當 IncludedRecipients 參數的多個值以逗號隔開時,會套用 OR 布林運算子。

Name

必要

System.String

Name 參數會指定電子郵件地址原則的名稱。

RecipientFilter

必要

System.String

RecipientFilter 參數會指定要納入電子郵件地址原則的收件者篩選器。如果使用下列任一篩選器參數,就不可以使用此參數。

  • ConditionalCompany
  • ConditionalDepartment
  • IncludedRecipients
  • ConditionalStateOrProvince

如需可過濾內容的相關資訊,請參閱 -RecipientFilter 參數的可過濾內容

ConditionalCompany

選用

Microsoft.Exchange.Data.MultiValuedProperty

ConditionalCompany 參數會依據公司進行篩選。它可以接受使用逗點分隔的清單輸入的多個值。

ConditionalCustomAttribute1

選用

System.String

ConditionalCustomAttribute1 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute10

選用

System.String

ConditionalCustomAttribute10 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute11

選用

System.String

ConditionalCustomAttribute11 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute12

選用

System.String

ConditionalCustomAttribute12 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute13

選用

System.String

ConditionalCustomAttribute13 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute14

選用

System.String

ConditionalCustomAttribute14 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute15

選用

System.String

ConditionalCustomAttribute15 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute2

選用

System.String

ConditionalCustomAttribute2 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute3

選用

System.String

ConditionalCustomAttribute3 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute4

選用

System.String

ConditionalCustomAttribute4 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute5

選用

System.String

ConditionalCustomAttribute5 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute6

選用

System.String

ConditionalCustomAttribute6 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute7

選用

System.String

ConditionalCustomAttribute7 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute8

選用

System.String

ConditionalCustomAttribute8 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalCustomAttribute9

選用

System.String

ConditionalCustomAttribute9 參數指定自訂的屬性。您可以使用這些屬性來儲存其他資訊。

ConditionalDepartment

選用

Microsoft.Exchange.Data.MultiValuedProperty

ConditionalDepartment 參數會依據部門進行篩選。它可以接受使用逗點分隔的清單輸入的多個值。

ConditionalStateOrProvince

選用

Microsoft.Exchange.Data.MultiValuedProperty

ConditionalStateOrProvince 參數會依據州或省進行篩選。它可以接受使用逗點分隔的清單輸入的多個值。

DisabledEmailAddressTemplates

選用

Microsoft.Exchange.Data.ProxyAddressTemplateCollection

DisabledEmailAddressTemplates 參數可定義納入電子郵件地址原則並停用的 Proxy 地址。它可以接受使用逗點分隔的清單輸入的多個值。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

若要指定將此組態變更寫入至 Active Directory 之網域控制站的網域全名 (FQDN),請在命令中加入 DomainController 參數。

Priority

選用

Microsoft.Exchange.Data.Directory.SystemConfiguration.EmailAddressPolicyPriority

Priority 參數可根據此參數的引數,讓目前的優先順序高於指定的優先順序。

TemplateInstance

選用

System.Management.Automation.PSObject

TemplateInstance 參數提供現有的物件時,命令會使用該物件之組態,在本機或目標伺服器上建立該物件的實際複寫。

輸入類型

傳回類型

錯誤

錯誤 描述

例外狀況

例外狀況 描述

範例

下列程式碼是 New-EmailAddressPolicy 命令的範例。

New-EmailAddressPolicy -Name "MyPolicy" -IncludedRecipients MailboxUsers -EnabledPrimarySMTPAddressTemplate SMTP:@contoso.com

若要確保您目前閱讀的是最新資訊,並尋找其他的 Exchange Server 2007 說明文件,請造訪 Exchange Server 技術資源中心.