Set-MailPublicFolder

 

适用于: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1

上一次修改主题: 2011-01-26

使用 Set-MailPublicFolder cmdlet 可以为已启用邮件的公用文件夹配置与邮件有关的设置。如果希望配置与邮件无关的基本设置,请使用 Set-PublicFolder cmdlet。

语法

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 cmdlet,必须为您使用的帐户委派以下角色:

  • 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 参数值将使用公用文件夹的名称标记。

该字符串必须符合对有效“本地部分”SMTP 地址的 RFC 2821 要求。

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 参数指定公用文件夹代理对象的显示名称。

DomainController

可选

Microsoft.Exchange.Data.Fqdn

若要指定用于将此配置更改写入 Active Directory 目录服务域控制器的完全限定的域名 (FQDN),请在命令中包含 DomainController 参数。

EmailAddresses

可选

Microsoft.Exchange.Data.ProxyAddressCollection

使用 EmailAddresses 参数可以指定代理地址(例如 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 参数显示对象的备用说明。这组有限的字符包括从 26 到 126 的 ASCII 字符(含 26 和 126)。

UMDtmfMap

可选

Microsoft.Exchange.Data.MultiValuedProperty

使用 UMDtmfMap 参数指定是否需要为启用 UM 的用户创建用户定义的 DTMF 映射。

UseRusServer

可选

System.String

请注意 此参数仅在 Exchange Server 2007 SP2 中可用。

UseRusServer 参数指示该命令使用运行地址列表服务的指定邮箱服务器获取和设置邮箱和 Active Directory 用户属性。

地址列表服务是 Exchange 系统助理服务的一个组件。地址列表服务在 Active Directory 中创建和维护特定于 Exchange 的属性值。可以使用地址列表服务通过借助特定信息来更新域中的收件人对象(如地址列表成员和电子邮件地址)。

WhatIf

可选

System.Management.Automation.SwitchParameter

WhatIf 参数指示命令模拟对对象执行的操作。通过使用 WhatIf 参数,可以查看要发生的更改,而不必应用任何这些更改。不必为 WhatIf 参数指定值。

WindowsEmailAddress

可选

Microsoft.Exchange.Data.SmtpAddress

WindowsEmailAddress 参数指定电子邮件地址@contoso.com 格式的电子邮件地址。

输入类型

返回类型

错误

错误 说明

 

异常

异常 说明

 

示例

此示例将已启用邮件的公用文件夹 MyPublicFolder@contoso.com 的主 SMTP 地址设置为 MyPublicFolder@fabrikam.com。

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