Set-Mailbox

 

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

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

使用 Set-Mailbox 指令程式可以修改現有信箱的設定。您一次只能對一個信箱使用此指令程式。若要執行大量管理,則可以管線處理各種 Get- 指令程式的輸出 (例如,Get-MailboxGet-User 指令程式),並透過單行命令設定數個信箱。您也可以在指令碼中使用 Set-Mailbox 指令程式。

語法

set-Mailbox -Identity <MailboxIdParameter> [-AcceptMessagesOnlyFrom <RecipientIdParameter[]>] [-AcceptMessagesOnlyFromDLMembers <RecipientIdParameter[]>] [-Alias <String>] [-AntispamBypassEnabled <$true | $false>] [-ApplyMandatoryProperties <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-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>] [-DowngradeHighPriorityMessagesEnabled <$true | $false>] [-EmailAddresses <ProxyAddressCollection>] [-EmailAddressPolicyEnabled <$true | $false>] [-EndDateForRetentionHold <Nullable>] [-Extensions <MultiValuedProperty>] [-ExternalOofOptions <InternalOnly | External>] [-ForwardingAddress <RecipientIdParameter>] [-GrantSendOnBehalfTo <MailboxOrMailUserIdParameter[]>] [-HiddenFromAddressListsEnabled <$true | $false>] [-IgnoreDefaultScope <SwitchParameter>] [-IssueWarningQuota <Unlimited>] [-Languages <MultiValuedProperty>] [-LinkedCredential <PSCredential>] [-LinkedDomainController <String>] [-LinkedMasterAccount <UserIdParameter>] [-ManagedFolderMailboxPolicy <MailboxPolicyIdParameter>] [-ManagedFolderMailboxPolicyAllowed <SwitchParameter>] [-MaxBlockedSenders <Nullable>] [-MaxReceiveSize <Unlimited>] [-MaxSafeSenders <Nullable>] [-MaxSendSize <Unlimited>] [-Name <String>] [-Office <String>] [-OfflineAddressBook <OfflineAddressBookIdParameter>] [-PrimarySmtpAddress <SmtpAddress>] [-ProhibitSendQuota <Unlimited>] [-ProhibitSendReceiveQuota <Unlimited>] [-RecipientLimits <Unlimited>] [-RejectMessagesFrom <RecipientIdParameter[]>] [-RejectMessagesFromDLMembers <RecipientIdParameter[]>] [-RemoveManagedFolderAndPolicy <SwitchParameter>] [-RequireSenderAuthenticationEnabled <$true | $false>] [-ResourceCapacity <Nullable>] [-ResourceCustom <MultiValuedProperty>] [-RetainDeletedItemsFor <EnhancedTimeSpan>] [-RetainDeletedItemsUntilBackup <$true | $false>] [-RetentionHoldEnabled <$true | $false>] [-RulesQuota <ByteQuantifiedSize>] [-SamAccountName <String>] [-SCLDeleteEnabled <Nullable>] [-SCLDeleteThreshold <Nullable>] [-SCLJunkEnabled <Nullable>] [-SCLJunkThreshold <Nullable>] [-SCLQuarantineEnabled <Nullable>] [-SCLQuarantineThreshold <Nullable>] [-SCLRejectEnabled <Nullable>] [-SCLRejectThreshold <Nullable>] [-SecondaryAddress <String>] [-SecondaryDialPlan <UMDialPlanIdParameter>] [-SimpleDisplayName <String>] [-StartDateForRetentionHold <Nullable>] [-Type <Regular | Room | Equipment | Shared>] [-UMDtmfMap <MultiValuedProperty>] [-UseDatabaseQuotaDefaults <Nullable>] [-UseDatabaseRetentionDefaults <$true | $false>] [-UserPrincipalName <String>] [-UseRusServer <String>] [-WhatIf [<SwitchParameter>]] [-WindowsEmailAddress <SmtpAddress>]

set-Mailbox [-AcceptMessagesOnlyFrom <RecipientIdParameter[]>] [-AcceptMessagesOnlyFromDLMembers <RecipientIdParameter[]>] [-Alias <String>] [-AntispamBypassEnabled <$true | $false>] [-ApplyMandatoryProperties <SwitchParameter>] [-Confirm [<SwitchParameter>]] [-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>] [-DowngradeHighPriorityMessagesEnabled <$true | $false>] [-EmailAddresses <ProxyAddressCollection>] [-EmailAddressPolicyEnabled <$true | $false>] [-EndDateForRetentionHold <Nullable>] [-Extensions <MultiValuedProperty>] [-ExternalOofOptions <InternalOnly | External>] [-ForwardingAddress <RecipientIdParameter>] [-GrantSendOnBehalfTo <MailboxOrMailUserIdParameter[]>] [-HiddenFromAddressListsEnabled <$true | $false>] [-IgnoreDefaultScope <SwitchParameter>] [-Instance <Mailbox>] [-IssueWarningQuota <Unlimited>] [-Languages <MultiValuedProperty>] [-LinkedCredential <PSCredential>] [-LinkedDomainController <String>] [-LinkedMasterAccount <UserIdParameter>] [-ManagedFolderMailboxPolicy <MailboxPolicyIdParameter>] [-ManagedFolderMailboxPolicyAllowed <SwitchParameter>] [-MaxBlockedSenders <Nullable>] [-MaxReceiveSize <Unlimited>] [-MaxSafeSenders <Nullable>] [-MaxSendSize <Unlimited>] [-Name <String>] [-Office <String>] [-OfflineAddressBook <OfflineAddressBookIdParameter>] [-PrimarySmtpAddress <SmtpAddress>] [-ProhibitSendQuota <Unlimited>] [-ProhibitSendReceiveQuota <Unlimited>] [-RecipientLimits <Unlimited>] [-RejectMessagesFrom <RecipientIdParameter[]>] [-RejectMessagesFromDLMembers <RecipientIdParameter[]>] [-RemoveManagedFolderAndPolicy <SwitchParameter>] [-RequireSenderAuthenticationEnabled <$true | $false>] [-ResourceCapacity <Nullable>] [-ResourceCustom <MultiValuedProperty>] [-RetainDeletedItemsFor <EnhancedTimeSpan>] [-RetainDeletedItemsUntilBackup <$true | $false>] [-RetentionHoldEnabled <$true | $false>] [-RulesQuota <ByteQuantifiedSize>] [-SamAccountName <String>] [-SCLDeleteEnabled <Nullable>] [-SCLDeleteThreshold <Nullable>] [-SCLJunkEnabled <Nullable>] [-SCLJunkThreshold <Nullable>] [-SCLQuarantineEnabled <Nullable>] [-SCLQuarantineThreshold <Nullable>] [-SCLRejectEnabled <Nullable>] [-SCLRejectThreshold <Nullable>] [-SecondaryAddress <String>] [-SecondaryDialPlan <UMDialPlanIdParameter>] [-SimpleDisplayName <String>] [-StartDateForRetentionHold <Nullable>] [-Type <Regular | Room | Equipment | Shared>] [-UMDtmfMap <MultiValuedProperty>] [-UseDatabaseQuotaDefaults <Nullable>] [-UseDatabaseRetentionDefaults <$true | $false>] [-UserPrincipalName <String>] [-UseRusServer <String>] [-WhatIf [<SwitchParameter>]] [-WindowsEmailAddress <SmtpAddress>]

詳細描述

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

  • Exchange 收件者系統管理員角色

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

參數

參數 必要 類型 描述

Identity

必要

Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter

Identity 參數會識別信箱。您可以使用下列值:

  • GUID

  • ADObjectID

  • 辨別名稱 (DN)

  • 網域\帳戶

  • 使用者主要名稱 (UPN)

  • LegacyExchangeDN

  • SmtpAddress

  • 別名

AcceptMessagesOnlyFrom

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

AcceptMessagesOnlyFrom 參數指定可將電子郵件傳送至此信箱的信箱使用者、郵件使用者及郵件連絡人。您也可以指定 Exchange 作為此參數的有效收件者。如果您將信箱設定為只接受來自 Exchange 收件者的郵件,它將只會接收系統產生的郵件。

AcceptMessagesOnlyFrom 參數可使用下列其中一個值作為有效的寄件者:

  • 辨別名稱 (DN)

  • 標準名稱

  • GUID

  • 名稱

  • 顯示名稱

  • 別名

  • Exchange DN

  • 主要 SMTP 電子郵件地址

此參數預設是空白的。此預設值可讓信箱接受所有寄件者的郵件。

AcceptMessagesOnlyFromDLMembers

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

AcceptMessagesOnlyFromDLMembers 參數可指定哪些通訊群組的成員可以將電子郵件傳到此信箱。您可以為允許的通訊群組使用下列任何值:

  • 辨別名稱 (DN)

  • 標準名稱

  • GUID

  • 名稱

  • 顯示名稱

  • 傳統 Exchange DN

  • 主要 SMTP 電子郵件地址

此參數預設是空白的。此預設值可讓信箱接受所有寄件者的郵件。

Alias

選用

System.String

Alias 參數指定使用者的別名 (郵件暱稱)。別名可以是以句點分隔的字元組合,其中不含空格。別名中請勿使用特殊字元。

AntispamBypassEnabled

選用

System.Boolean

AntispamBypassEnabled 參數指定是否略過此信箱上的反垃圾郵件處理。此參數的兩個可能值是 $true 或 $false。

ApplyMandatoryProperties

選用

System.Management.Automation.SwitchParameter

不支援透過 Active Directory 使用者和電腦主控台的 Exchange 2003 延伸模組來建立 Exchange 2007  信箱。如果是使用此工具建立 Exchange 2007 信箱,則即使該信箱是位在 Exchange 2007 伺服器上,仍然會將該信箱識別為舊版信箱。您可以使用 ApplyMandatoryProperties 參數修改處於此狀態之信箱的必要內容,以更正問題並移除信箱的 legacyMailbox 標記。

Confirm

選用

System.Management.Automation.SwitchParameter

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

CreateDTMFMap

選用

System.Boolean

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

CustomAttribute1

選用

System.String

CustomAttribute1 參數指定信箱屬性 CustomAttribute1 的值。

CustomAttribute10

選用

System.String

CustomAttribute10 參數指定信箱屬性 CustomAttribute10 的值。

CustomAttribute11

選用

System.String

CustomAttribute11 參數指定信箱屬性 CustomAttribute11 的值。

CustomAttribute12

選用

System.String

CustomAttribute12 參數指定信箱屬性 CustomAttribute12 的值。

CustomAttribute13

選用

System.String

CustomAttribute13 參數指定信箱屬性 CustomAttribute13 的值。

CustomAttribute14

選用

System.String

CustomAttribute14 參數指定信箱屬性 CustomAttribute14 的值。

CustomAttribute15

選用

System.String

CustomAttribute15 參數指定信箱屬性 CustomAttribute15 的值。

CustomAttribute2

選用

System.String

CustomAttribute2 參數指定信箱屬性 CustomAttribute2 的值。

CustomAttribute3

選用

System.String

CustomAttribute3 參數指定信箱屬性 CustomAttribute3 的值。

CustomAttribute4

選用

System.String

CustomAttribute4 參數指定信箱屬性 CustomAttribute4 的值。

CustomAttribute5

選用

System.String

CustomAttribute5 參數指定信箱屬性 CustomAttribute5 的值。

CustomAttribute6

選用

System.String

CustomAttribute6 參數指定信箱屬性 CustomAttribute6 的值。

CustomAttribute7

選用

System.String

CustomAttribute7 參數指定信箱屬性 CustomAttribute7 的值。

CustomAttribute8

選用

System.String

CustomAttribute8 參數指定信箱屬性 CustomAttribute8 的值。

CustomAttribute9

選用

System.String

CustomAttribute9 參數指定信箱屬性 CustomAttribute9 的值。

DeliverToMailboxAndForward

選用

System.Boolean

DeliverToMailboxAndForward 參數指定是否將傳送至此信箱的郵件轉寄給另一個地址。

如果 DeliverToMailboxAndForward 設為 $true,則郵件會傳遞到信箱與轉寄的地址。

如果設為 $false,則只會傳遞到轉寄地址。

DisplayName

選用

System.String

DisplayName 參數指定與此信箱關聯之使用者帳戶的顯示名稱。此顯示名稱是供 Microsoft Outlook 使用。

DomainController

選用

Microsoft.Exchange.Data.Fqdn

DomainController 參數指定要用來將變更寫入 Active Directory 的網域控制站。請使用想要使用之網域控制站的網域全名 (FQDN)。

DowngradeHighPriorityMessagesEnabled

選用

System.Boolean

DowngradeHighPriorityMessagesEnabled 參數會使信箱無法傳送高優先順序的郵件至 X.400 郵件系統。如果此參數設為 $true,而信箱傳送高優先順序的郵件至 X.400 郵件系統,郵件優先順序會變更為一般優先順序。

EmailAddresses

選用

Microsoft.Exchange.Data.ProxyAddressCollection

EmailAddresses 參數指定信箱的所有 Proxy 位址。它包含主要的簡易郵件傳送通訊協定 (SMTP) 位址作為其中一個 Proxy 位址。

如果使用此參數,您將無法使用 PrimarySMTPAddress 參數。

important重要事項:
Exchange 2007 不會驗證自訂位址的格式是否正確。您必須確定指定的自訂位址符合該位址類型的格式需求。由於 X.400 地址在 Exchange 2007 中是視為自訂位址,而不會加以驗證,因此,當指定 X.400 地址時,必須提供正確的語法。

EmailAddressPolicyEnabled

選用

System.Boolean

EmailAddressPolicyEnabled 參數指定是否啟用此信箱的電子郵件地址原則。此參數的兩個可能值是 $true 或 $false。

EndDateForRetentionHold

選用

System.Nullable

EndDateForRetentionHold 參數指定通訊記錄管理 (MRM) 之保留的結束日期。若要使用此參數,RetentionHoldEnabled 參數必須設為 $true。

Extensions

選用

Microsoft.Exchange.Data.MultiValuedProperty

此參數指定使用者的一或多個分機號碼。設定參數時,撥號對應表內的所有分機號碼都必須是唯一的。

ExternalOofOptions

選用

Microsoft.Exchange.Data.Directory.Recipient.ExternalOofOptions

ExternalOofOptions 參數指定將郵件答錄機訊息傳送給外部寄件者的選項。您可以使用下列值:

  • External

  • InternalOnly

ForwardingAddress

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter

ForwardingAddress 參數指定轉寄地址。如果 DeliverToMailboxAndForward 設為 $true,則將傳送至此信箱的郵件轉寄至指定的位址。

GrantSendOnBehalfTo

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter

GrantSendOnBehalfTo 參數指定可以代表此信箱傳送郵件之其他信箱的辨別名稱 (DN)。

HiddenFromAddressListsEnabled

選用

System.Boolean

HiddenFromAddressListsEnabled 參數指定是否隱藏此信箱,不讓它出現在其他通訊清單中。此參數的兩個可能值是 $true 或 $false。

IgnoreDefaultScope

選用

System.Management.Automation.SwitchParameter

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

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

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

Instance

選用

Microsoft.Exchange.Data.Directory.Management.Mailbox

Instance 參數可讓您將整個物件傳遞至要處理的命令。它主要是用於必須將整個物件傳遞至該命令的指令碼。

IssueWarningQuota

選用

Microsoft.Exchange.Data.Unlimited

IssueWarningQuota 參數指定信箱大小,一旦達到此大小即會傳送警告訊息至使用者。

您必須指定一個整數或 [無限制]。

如果您在信箱上設定此屬性,該信箱設定會覆寫在信箱資料庫上為此屬性所設定的值。

Languages

選用

Microsoft.Exchange.Data.MultiValuedProperty

Languages 參數依序指定此信箱的語言喜好設定。有數個 Exchange 元件會以喜好的語言向信箱使用者顯示資訊 (如果支援該語言的話)。上述部分元件包括配額郵件、未傳遞回報 (NDR)、Microsoft Outlook Web Access 使用者介面以及整合通訊 (UM) 語音提示等。

LinkedCredential

選用

System.Management.Automation.PSCredential

LinkedCredential 參數指定要用來存取 LinkedDomainController 參數所指定之網域控制站的認證。

LinkedDomainController

選用

System.String

如果此信箱是連結的信箱,則 LinkedDomainController 參數可指定使用者帳戶所在之樹系中的網域控制站。使用者帳戶所在樹系中的網域控制站是用來取得 LinkedMasterAccount 參數指定之帳戶的安全性資訊。

LinkedMasterAccount

選用

Microsoft.Exchange.Configuration.Tasks.UserIdParameter

如果此信箱是連結的信箱,則 LinkedMasterAccount 參數可指定使用者帳戶所在之樹系中的主帳戶。主帳戶是信箱連結到的帳戶。主帳戶會授與信箱的存取權限。您可以使用下列其中一個值:

  • GUID

  • 辨別名稱 (DN)

  • 網域\帳戶

  • 使用者主要名稱 (UPN)

  • LegacyExchangeDN

  • SmtpAddress

  • 別名

ManagedFolderMailboxPolicy

選用

Microsoft.Exchange.Configuration.Tasks.MailboxPolicyIdParameter

ManagedFolderMailboxPolicy 參數指定受管理的資料夾信箱原則,用以控制信箱的通訊記錄管理 (MRM)。如果參數設為 $null,Exchange 會從信箱移除受管理的資料夾信箱原則,但信箱中的任何受管理的資料夾都仍然存在。

ManagedFolderMailboxPolicyAllowed

選用

System.Management.Automation.SwitchParameter

ManagedFolderMailboxPolicyAllowed 參數會略過通訊記錄管理 (MRM) 功能不支援電子郵件用戶端所執行之 Outlook 版本早於 Outlook 2007 的警告。當使用 ManagedFolderMailboxPolicy 參數將受管理的資料夾信箱原則指派至信箱時,除非使用 ManagedFolderMailboxPolicyAllowed,否則預設會出現該警告。

note附註:
雖然有支援 Outlook 2003 Service Pack 3 (SP3) 用戶端,但其 MRM 功能有限。

MaxBlockedSenders

選用

System.Nullable

使用 MaxBlockedSenders 參數,指定可以併入封鎖寄件者清單中的寄件者數目上限。封鎖的寄件者是信箱使用者視為垃圾郵件寄件者的寄件者,並用於垃圾郵件規則中。只有在使用 Outlook Web Access 或 Web 服務更新垃圾郵件規則時,才會驗證此參數。

MaxReceiveSize

選用

Microsoft.Exchange.Data.Unlimited

MaxReceiveSize 參數指定此信箱可以接收的郵件大小上限。您必須指定一個整數或 [無限制]。

MaxSafeSenders

選用

System.Nullable

使用 MaxSafeSenders 參數,指定可以併入安全寄件者清單中的寄件者數目上限。安全的寄件者是信箱使用者視為可信任的寄件者,並用於垃圾郵件規則中。只有在使用 Outlook Web Access 或 Web 服務更新垃圾郵件規則時,才會驗證此參數。

MaxSendSize

選用

Microsoft.Exchange.Data.Unlimited

MaxSendSize 參數指定此信箱可以傳送的郵件大小上限。您必須指定一個整數或 [無限制]。

Name

選用

System.String

Name 參數指定此信箱的 Name 屬性。Name 屬性是用來提供 Active Directory 中的一般名稱 (CN)。

Office

選用

System.String

Office 參數指定此信箱的 Microsoft Office 屬性。

OfflineAddressBook

選用

Microsoft.Exchange.Configuration.Tasks.OfflineAddressBookIdParameter

OfflineAddressBook 參數指定關聯的通訊錄。

PrimarySmtpAddress

選用

Microsoft.Exchange.Data.SmtpAddress

PrimarySmtpAddress 參數指定外部使用者收到來自此信箱的郵件時所看到的地址。

如果使用此參數,您將無法使用 EmailAddresses 參數,因為 EmailAddresses 包含主要 SMTP 位址。

ProhibitSendQuota

選用

Microsoft.Exchange.Data.Unlimited

ProhibitSendQuota 參數指定信箱大小,一旦達到此大小,與此信箱關聯的使用者就無法再傳送郵件。

您必須指定一個整數或 [無限制]。

如果您在信箱上設定此屬性,該信箱設定會覆寫在信箱資料庫上為此屬性所設定的值。

ProhibitSendReceiveQuota

選用

Microsoft.Exchange.Data.Unlimited

ProhibitSendReceiveQuota 參數指定信箱大小,一旦達到此大小,與此信箱關聯的使用者就無法再傳送或接收郵件。

您必須指定一個整數或 [無限制]。

如果您在信箱上設定此屬性,該信箱設定會覆寫在信箱資料庫上為此屬性所設定的值。

RecipientLimits

選用

Microsoft.Exchange.Data.Unlimited

RecipientLimits 參數指定從此信箱傳送郵件時,每封郵件的收件者數目上限。

您必須指定一個整數或 [無限制]。

如果您在信箱上設定此屬性,該信箱設定會覆寫在 Hub Transport Server 上為此屬性所設定的值。

RejectMessagesFrom

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

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

RejectMessagesFromDLMembers

選用

Microsoft.Exchange.Configuration.Tasks.RecipientIdParameter[]

RejectMessagesFromDLMembers 參數指定通訊群組清單。來自這些通訊群組清單的任何成員的郵件將被拒絕。

RemoveManagedFolderAndPolicy

選用

System.Management.Automation.SwitchParameter

在 Exchange 2007 Service Pack 1 中,您可以使用 RemoveManagedFolderAndPolicy 參數來移除信箱的所有 MRM 原則與屬性。如果使用此參數,會移除在任何 MRM 原則中建立之任何受管理的資料夾的 MRM 原則與 MRM 內容,空的受管理的資料夾會從信箱移除,而包含郵件的受管理的資料夾會轉換成標準資料夾。

RequireSenderAuthenticationEnabled

選用

System.Boolean

RequireSenderAuthenticationEnabled 參數指定是否必須驗證寄件者。此參數的兩個可能值是 $true 或 $false。

ResourceCapacity

選用

System.Nullable

如果此信箱是資源信箱,則 ResourceCapacity 參數會指定容量。

您必須指定一個非負數的整數。

ResourceCustom

選用

Microsoft.Exchange.Data.MultiValuedProperty

ResourceCustom 參數指定資源的相關資訊。您可以使用 Set-ResourceConfig 命令定義資源信箱的自訂內容,然後使用此參數設定那些自訂內容。

RetainDeletedItemsFor

選用

Microsoft.Exchange.Data.EnhancedTimeSpan

RetainDeletedItemsFor 參數指定要保留已刪除之郵件的時間長度。若要指定值,請將輸入時間範圍值:dd.hh:mm:ss,其中 d = 天數,h = 時數,m = 分鐘數,而 s = 秒數。例如,若要指定 15 小時的間隔,請輸入 15:00:00。

RetainDeletedItemsUntilBackup

選用

System.Boolean

RetainDeletedItemsUntilBackup 參數指定是否將已刪除的郵件保留至下一次備份。此參數的兩個可能值是 $true 或 $false。

RetentionHoldEnabled

選用

System.Boolean

RetentionHoldEnabled 參數指定是否啟用 MRM 的保留功能。此參數的兩個可能值是 $true 或 $false。若要設定保留的開始日期,請使用 StartDateForRetentionHold 參數。

RulesQuota

選用

Microsoft.Exchange.Data.ByteQuantifiedSize

RulesQuota 參數指定此信箱的規則大小限制。當您輸入值時,請以下列其中之一來限定值:

  • B (位元組)

  • KB (千位元組)

  • MB (百萬位元組)

  • GB

  • TB

無限定的值會視為位元組。

此參數的預設值是 64 KB。此參數的最大值是 256 KB。

note附註:
信箱規則的配額只會套用到已啟用的規則。信箱所能具有的已停用規則數目沒有限制。不過,已啟用 (作用中) 規則的總大小不得超過為此參數指定的值。

SamAccountName

選用

System.String

SamAccountName 參數指定舊版作業系統 (如 Windows NT 4.0、Windows 98、Windows 95 及 LAN Manager) 的使用者名稱。此參數是用來支援執行舊版作業系統的用戶端及伺服器。此屬性的長度必須小於 20 個字元

SCLDeleteEnabled

選用

System.Nullable

SCLDeleteEnabled 參數指定是否要刪除符合 SCLDeleteThreshold 參數所指定之垃圾郵件信賴等級 (SCL) 閾值的郵件。您可以使用下列值:

  • $true

  • $false

  • $null

SCLDeleteThreshold

選用

System.Nullable

如果 SCLDeleteEnabled 參數設為 $true,則 SCLDeleteThreshold 參數會指定 SCL,一旦郵件達到此值,即予以刪除。

您必須指定一個介於 0 和 9 (含) 之間的整數。

SCLJunkEnabled

選用

System.Nullable

SCLJunkEnabled 參數指定是否將符合 SCLJunkThreshold 參數所指定之 SCL 閾值的郵件移至垃圾郵件資料夾。您可以使用下列值:

  • $true

  • $false

  • $null

SCLJunkThreshold

選用

System.Nullable

SCLJunkThreshold 參數指定 SCL 閾值。郵件的 SCL 若大於您為 SCLJunkThreshold 參數指定的值,會移至垃圾郵件資料夾 (如果 SCLJunkEnabled 參數設為 $true)。

您必須指定一個介於 0 和 9 (含) 之間的整數。

SCLQuarantineEnabled

選用

System.Nullable

SCLQuarantineEnabled 參數指定是否要隔離符合 SCLQuarantineThreshold 參數所指定之 SCL 閾值的郵件。如果郵件遭到隔離,它會傳送至隔離信箱,郵件系統管理員可以在該處檢閱它。您可以使用下列值:

  • $true

  • $false

  • $null

SCLQuarantineThreshold

選用

System.Nullable

如果 SCLQuarantineEnabled 參數設為 $true,則 SCLQuarantineThreshold 參數會指定 SCL,一旦郵件達到此值,即予以隔離。

您必須指定一個介於 0 和 9 (含) 之間的整數。

SCLRejectEnabled

選用

System.Nullable

SCLRejectEnabled 參數指定是否要拒絕符合 SCLRejectThreshold 參數所指定之 SCL 閾值的郵件。如果郵件被拒絕,即加以刪除並傳送拒絕回應給寄件者。您可以使用下列值:

  • $true

  • $false

  • $null

SCLRejectThreshold

選用

System.Nullable

如果 SCLRejectEnabled 參數設為 $true,則 SCLRejectThreshold 參數會指定 SCL,一旦郵件達到此值,即予以拒絕。

您必須指定一個介於 0 和 9 (含) 之間的整數。

SecondaryAddress

選用

System.String

此參數指定已啟用 UM 之使用者所使用的次要地址。

SecondaryDialPlan

選用

Microsoft.Exchange.Configuration.Tasks.UMDialPlanIdParameter

此參數指定要使用的次要 UM 撥號對應表。提供此參數可建立次要 Proxy 位址。

SimpleDisplayName

選用

System.String

SimpleDisplayName 參數是用在物件名稱可以在不支援 Unicode 字元的環境下顯示的物件。SimpleDisplayName 參數唯一支援的字元是 ASCII 字元 26 到 126,包括 26 及 126。這些字元是您通常可以在大多數美式英文鍵盤上發現的字元。

StartDateForRetentionHold

選用

System.Nullable

StartDateForRetentionHold 參數指定 MRM 之保留的開始日期。若要使用此參數,RetentionHoldEnabled 參數必須設為 $true。

Type

選用

Microsoft.Exchange.Management.RecipientTasks.ConvertibleMailboxSubType

Type 參數指定信箱的類型。您可以使用下列值:

  • Regular

  • Room

  • Equipment

  • Shared

UMDtmfMap

選用

Microsoft.Exchange.Data.MultiValuedProperty

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

UseDatabaseQuotaDefaults

選用

System.Nullable

UseDatabaseQuotaDefaults 參數指定此信箱要使用指定給此信箱所在之信箱資料庫的配額屬性。配額屬性為:

  • ProhibitSendQuota

  • ProhibitSendReceiveQuota

  • IssueWarningQuota

  • RulesQuota

此參數的兩個可能值是 $true 或 $false。

UseDatabaseRetentionDefaults

選用

System.Boolean

UseDatabaseRetentionDefaults 參數指定此信箱要使用指定給此信箱所在之信箱資料庫的 MailboxRetention 屬性。

此參數的兩個可能值是 $true 或 $false。

UserPrincipalName

選用

System.String

UserPrincipalName 參數指定此信箱的使用者主要名稱 (UPN)。這是使用者的登入名稱。UPN 是由使用者名稱及尾碼所組成。一般而言,尾碼是使用者帳戶所在的網域名稱。

UseRusServer

選用

System.String

UseRusServer 參數會指示此命令,使用指定的收件者更新服務伺服器來取得並設定信箱及 Active Directory 使用者屬性。

WhatIf

選用

System.Management.Automation.SwitchParameter

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

WindowsEmailAddress

選用

Microsoft.Exchange.Data.SmtpAddress

WindowsEmailAddress 參數指定此信箱的 Windows 電子郵件地址。此位址不會由 Exchange 使用。

輸入類型

傳回類型

錯誤

錯誤 描述

 

例外狀況

例外狀況 描述

 

範例

第一個範例顯示如何將 John Peoples 的電子郵件轉寄給 Jose De Oliveira (jose@contoso.com) 的信箱。

第二個範例使用 Get-Mailbox 命令尋找 Marketing 組織單位 (OU) 中的所有信箱,然後使用 Set-Mailbox 命令設定這些信箱。自訂警告、禁止傳送以及禁止傳送和接收限制分別設為 200 MB、250 MB 及 280 MB,並且會略過信箱資料庫的預設限制。此命令可以用來設定特定一組信箱,讓這些信箱的限制大於或小於組織中的其他信箱。

第三個範例使用 Get-User 命令尋找 Customer Service 部門中的所有使用者,然後使用 Set-Mailbox 命令將傳送郵件時的郵件大小上限變更為 2 MB。

Set-Mailbox -Identity John -DeliverToMailboxAndForward $true -ForwardingAddress jose@contoso.com 
Get-Mailbox -OrganizationalUnit "Marketing" | Set-Mailbox -IssueWarningQuota 209715200 -ProhibitSendQuota 262144000 -ProhibitSendReceiveQuota 293601280 -UseDatabaseQuotaDefaults $false 
Get-User -Filter "Department -eq 'Customer Service'" | Set-Mailbox -MaxSendSize 2097152