Set-MailPublicFolder

 

適用版本: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

上次修改主題的時間: 2011-01-26

使用 Set-MailPublicFolder 指令程式設定擁有郵件功能之公用資料夾的郵件相關設定。如果想要設定與郵件無關的基本設定,請使用 Set-PublicFolder 指令程式。

語法

Set-MailPublicFolder -Identity <MailPublicFolderIdParameter> [-AcceptMessagesOnlyFrom <RecipientIdParameter[]>] [-AcceptMessagesOnlyFromDLMembers <RecipientIdParameter[]>] [-Alias <String>] [-Confirm [<SwitchParameter>]] [-Contacts <RecipientIdParameter[]>] [-CreateDTMFMap <$true | $false>] [-CustomAttribute1 <String>] [-CustomAttribute10 <String>] [-CustomAttribute11 <String>] [-CustomAttribute12 <String>] [-CustomAttribute13 <String>] [-CustomAttribute14 <String>] [-CustomAttribute15 <String>] [-CustomAttribute2 <String>] [-CustomAttribute3 <String>] [-CustomAttribute4 <String>] [-CustomAttribute5 <String>] [-CustomAttribute6 <String>] [-CustomAttribute7 <String>] [-CustomAttribute8 <String>] [-CustomAttribute9 <String>] [-DeliverToMailboxAndForward <$true | $false>] [-DisplayName <String>] [-DomainController <Fqdn>] [-EmailAddresses <ProxyAddressCollection>] [-EmailAddressPolicyEnabled <$true | $false>] [-ForwardingAddress <RecipientIdParameter>] [-GrantSendOnBehalfTo <MailboxOrMailUserIdParameter[]>] [-HiddenFromAddressListsEnabled <$true | $false>] [-IgnoreDefaultScope <SwitchParameter>] [-MaxReceiveSize <Unlimited>] [-MaxSendSize <Unlimited>] [-Name <String>] [-PhoneticDisplayName <String>] [-PrimarySmtpAddress <SmtpAddress>] [-PublicFolderType <GeneralPurpose | Mapi | Nntp | NotSpecified>] [-RejectMessagesFrom <RecipientIdParameter[]>] [-RejectMessagesFromDLMembers <RecipientIdParameter[]>] [-RequireSenderAuthenticationEnabled <$true | $false>] [-Server <ServerIdParameter>] [-SimpleDisplayName <String>] [-UMDtmfMap <MultiValuedProperty>] [-UseRusServer <String>] [-WhatIf [<SwitchParameter>]] [-WindowsEmailAddress <SmtpAddress>]

Set-MailPublicFolder [-AcceptMessagesOnlyFrom <RecipientIdParameter[]>] [-AcceptMessagesOnlyFromDLMembers <RecipientIdParameter[]>] [-Alias <String>] [-Confirm [<SwitchParameter>]] [-Contacts <RecipientIdParameter[]>] [-CreateDTMFMap <$true | $false>] [-CustomAttribute1 <String>] [-CustomAttribute10 <String>] [-CustomAttribute11 <String>] [-CustomAttribute12 <String>] [-CustomAttribute13 <String>] [-CustomAttribute14 <String>] [-CustomAttribute15 <String>] [-CustomAttribute2 <String>] [-CustomAttribute3 <String>] [-CustomAttribute4 <String>] [-CustomAttribute5 <String>] [-CustomAttribute6 <String>] [-CustomAttribute7 <String>] [-CustomAttribute8 <String>] [-CustomAttribute9 <String>] [-DeliverToMailboxAndForward <$true | $false>] [-DisplayName <String>] [-DomainController <Fqdn>] [-EmailAddresses <ProxyAddressCollection>] [-EmailAddressPolicyEnabled <$true | $false>] [-ForwardingAddress <RecipientIdParameter>] [-GrantSendOnBehalfTo <MailboxOrMailUserIdParameter[]>] [-HiddenFromAddressListsEnabled <$true | $false>] [-IgnoreDefaultScope <SwitchParameter>] [-Instance <MailPublicFolder>] [-MaxReceiveSize <Unlimited>] [-MaxSendSize <Unlimited>] [-Name <String>] [-PhoneticDisplayName <String>] [-PrimarySmtpAddress <SmtpAddress>] [-PublicFolderType <GeneralPurpose | Mapi | Nntp | NotSpecified>] [-RejectMessagesFrom <RecipientIdParameter[]>] [-RejectMessagesFromDLMembers <RecipientIdParameter[]>] [-RequireSenderAuthenticationEnabled <$true | $false>] [-Server <ServerIdParameter>] [-SimpleDisplayName <String>] [-UMDtmfMap <MultiValuedProperty>] [-UseRusServer <String>] [-WhatIf [<SwitchParameter>]] [-WindowsEmailAddress <SmtpAddress>]

詳細描述

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

  • Exchange 公用資料夾系統管理員角色和目標伺服器的本機 Administrators 群組

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

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.MailPublicFolderIdParameter

使用 Identity 參數,可以指定代表特定公用資料夾的 GUID 或公用資料夾名稱。您也可以使用 \TopLevelPublicFolder\PublicFolder 的格式加入路徑。

您可以略過 Identity 參數標籤,而只提供公用資料夾名稱或 GUID。

AcceptMessagesOnlyFrom

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

使用 AcceptMessagesOnlyFrom 參數以指定可接受郵件的有限收件者清單。

AcceptMessagesOnlyFromDLMembers

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

使用 AcceptMessagesOnlyFromDLMembers 參數以指定通訊清單成員,其可將郵件傳送給擁有信箱功能的公用資料夾。

Alias

選用

System.String

使用 Alias 參數以指定公用資料夾的別名 (郵件暱稱)。如果未指定,Alias 參數值會以公用資料夾名稱為戳記。

字串必須符合 RFC 2821 需求,本機部份的 SMTP 位址才會有效。

Confirm

選用

System.Management.Automation.SwitchParameter

Confirm 參數會使得命令暫停處理,並要求確認命令將進行的動作之後才會繼續處理。您不需要為 Confirm 參數指定任何值。

Contacts

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

Contacts 參數指定公用資料夾的連絡人。「連絡人」是您可以儲存數種資訊類型 (例如地址、電話號碼以及網頁 URL) 的人員。

CreateDTMFMap

選用

System.Boolean

此參數指定為使用者建立雙音多頻 (DTMF) 對應。

CustomAttribute1

選用

System.String

CustomAttribute1 參數可以是任何字串值。

CustomAttribute10

選用

System.String

CustomAttribute10 參數可以是任何字串值。

CustomAttribute11

選用

System.String

CustomAttribute11 參數可以是任何字串值。

CustomAttribute12

選用

System.String

CustomAttribute12 參數可以是任何字串值。

CustomAttribute13

選用

System.String

CustomAttribute13 參數可以是任何字串值。

CustomAttribute14

選用

System.String

CustomAttribute14 參數可以是任何字串值。

CustomAttribute15

選用

System.String

CustomAttribute15 參數可以是任何字串值。

CustomAttribute2

選用

System.String

CustomAttribute2 參數可以是任何字串值。

CustomAttribute3

選用

System.String

CustomAttribute3 參數可以是任何字串值。

CustomAttribute4

選用

System.String

CustomAttribute4 參數可以是任何字串值。

CustomAttribute5

選用

System.String

CustomAttribute5 參數可以是任何字串值。

CustomAttribute6

選用

System.String

CustomAttribute6 參數可以是任何字串值。

CustomAttribute7

選用

System.String

CustomAttribute7 參數可以是任何字串值。

CustomAttribute8

選用

System.String

CustomAttribute8 參數可以是任何字串值。

CustomAttribute9

選用

System.String

CustomAttribute9 參數可以是任何字串值。

DeliverToMailboxAndForward

選用

System.Boolean

DeliverToMailboxAndForward 參數指定是否可將電子郵件傳送給轉寄地址。

DisplayName

選用

System.String

DisplayName 參數指定公用資料夾 Proxy 物件的顯示名稱。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

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

EmailAddresses

選用

Microsoft.Exchange.Data.ProxyAddressCollection

使用 EmailAddresses 參數以指定 Proxy 位址 (例如,user@contoso.com)。

EmailAddressPolicyEnabled

選用

System.Boolean

使用 EmailAddressPolicyEnabled 參數以啟用或停用套用至資料夾的電子郵件地址原則。

ForwardingAddress

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter

使用 ForwardingAddress 參數以設定資料夾的轉寄地址。

GrantSendOnBehalfTo

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter

GrantSendOnBehalfTo 參數指定可以代表此資料夾傳送之其他信箱的辨別名稱。

HiddenFromAddressListsEnabled

選用

System.Boolean

HiddenFromAddressListsEnabled 參數指定是否可從通訊清單檢視信箱。

IgnoreDefaultScope

選用

System.Management.Automation.SwitchParameter

IgnoreDefaultScope 參數會指示命令略過 Exchange 管理命令介面的預設收件者範圍設定,並以整個樹系作為範圍。如此可讓命令存取目前不在預設範圍內的 Active Directory 物件。使用 IgnoreDefaultScope 參數會產生下列限制:

  • 您無法使用 DomainController 參數。此命令會自動使用適當的通用類別目錄伺服器。

  • 您只可以針對 Identity 參數使用辨別名稱。不接受其他形式的識別碼 (如別名或 GUID)。

Instance

選用

Microsoft.Exchange.Data.Directory.Management.MailPublicFolder

Instance 參數指定由此命令所傳送和消耗的 Active Directory 物件執行個體。

MaxReceiveSize

選用

Microsoft.Exchange.Data.Unlimited

MaxReceiveSize 參數指定資料夾可接收的電子郵件大小上限。有效值介於 1 KB 至 2,097,151 KB 之間。如果未指定此參數的值,便不會加上大小限制。

MaxSendSize

選用

Microsoft.Exchange.Data.Unlimited

MaxSendSize 參數指定可傳送的電子郵件大小上限。有效值介於 1 KB 至 2,097,151 KB 之間。如果未指定此參數的值,便不會加上大小限制。

Name

選用

System.String

Name 參數指定公用資料夾的名稱。

PhoneticDisplayName

選用

System.String

PhoneticDisplayName 參數指定 DisplayName 參數的語音讀法。

此參數值的最大長度為 255 個字元。如需 PhoneticDisplayName 參數與語音辨識的相關資訊,請參閱了解自動語音辨識目錄查閱服務

PrimarySmtpAddress

選用

Microsoft.Exchange.Data.SmtpAddress

使用 PrimarySmtpAddress 參數以指定資料夾的主要 SMTP 位址。

PublicFolderType

選用

Microsoft.Exchange.Data.Directory.Recipient.PublicFolderType

PublicFolderType 參數指定公用資料夾是下列四種類型的哪一種:

  • GeneralPurpose

  • MAPI

  • NNTP

  • NotSpecified

RejectMessagesFrom

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

RejectMessagesFrom 參數指定收件者要拒絕哪些寄件者的郵件。

RejectMessagesFromDLMembers

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

RejectMessagesFromDLMembers 參數指定通訊群組清單成員要拒絕哪些寄件者的郵件。

RequireSenderAuthenticationEnabled

選用

System.Boolean

RequireSenderAuthenticationEnabled 參數指定是否必須驗證寄件者。

Server

選用

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

Server 參數指定伺服器的識別碼來執行作業。如果未指定伺服器,命令會檢查本機伺服器是否為具有公用資料夾資料庫的 Exchange 2007 信箱伺服器。如果是,則會在本機建立資料夾。如果不是,命令會尋找已安裝公用資料夾資料庫的最靠近的 (根據網站成本) Exchange 2007 信箱伺服器。

SimpleDisplayName

選用

System.String

SimpleDisplayName 參數是在只允許有限的一組字元時,用來顯示物件的替代性描述。這組有限的字元是由 ASCII 字元 26 到 126 所組成。

UMDtmfMap

選用

Microsoft.Exchange.Data.MultiValuedProperty

使用 UMDtmfMap 參數,可指定是否要為已啟用 UM 的使用者建立使用者定義之 DTMF 對應。

UseRusServer

選用

System.String

附註   只有在 Exchange Server 2007 SP2 中才能使用此參數。

UseRusServer 參數會指示此命令,使用通訊清單服務執行所在的指定信箱伺服器來取得並設定信箱及 Active Directory 使用者屬性。

通訊清單服務是 Exchange System Attendant 服務的一個元件。通訊清單服務會在 Active Directory 中建立並維護 Exchange 的特定屬性。您可以使用特定資訊 (如通訊清單成員資格與電子郵件地址),透過通訊清單服務來更新網域中的收件者物件。

WhatIf

選用

System.Management.Automation.SwitchParameter

WhatIf 參數指示命令模擬它將對物件採取的動作。使用 WhatIf 參數,則不需要套用任何變更,就能檢視變更。您不需要為 WhatIf 參數指定任何值。

WindowsEmailAddress

選用

Microsoft.Exchange.Data.SmtpAddress

WindowsEmailAddress 參數會以 E-mailAddress@contoso.com 的格式指定電子郵件地址。

輸入類型

傳回類型

錯誤

錯誤 描述

 

例外狀況

例外狀況 描述

 

範例

此範例將擁有信箱功能的公用資料夾 MyPublicFolder@contoso.com 的主要 SMTP 位址設定為 MyPublicFolder@fabrikam.com。

Set-MailPublicFolder -Identity MyPublicFolder@contoso.com -PrimarySmtpAddress MyPublicFolder@fabrikam.com