Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2

Topic Last Modified: 2012-11-08

Use the Set-MailboxMessageConfiguration cmdlet to modify e-mail message settings for one mailbox at a time.

Syntax

Set-MailboxMessageConfiguration -Identity <MailboxIdParameter> [-AfterMoveOrDeleteBehavior <OpenPreviousItem | OpenNextItem | ReturnToView>] [-AlwaysShowBcc <$true | $false>] [-AlwaysShowFrom <$true | $false>] [-AutoAddSignature <$true | $false>] [-Confirm [<SwitchParameter>]] [-ConversationSortOrder <Chronological | Tree | NewestOnTop | NewestOnBottom | ChronologicalNewestOnTop | ChronologicalNewestOnBottom | TreeNewestOnBottom>] [-DefaultFontColor <String>] [-DefaultFontFlags <Normal | Bold | Italic | Underline | All>] [-DefaultFontName <String>] [-DefaultFontSize <Int32>] [-DefaultFormat <Html | PlainText>] [-DomainController <Fqdn>] [-EmptyDeletedItemsOnLogoff <$true | $false>] [-HideDeletedItems <$true | $false>] [-IgnoreDefaultScope <SwitchParameter>] [-NewItemNotification <None | Sound | EMailToast | VoiceMailToast | FaxToast | All>] [-PreviewMarkAsReadBehavior <Delayed | OnSelectionChange | Never>] [-PreviewMarkAsReadDelaytime <Int32>] [-ReadReceiptResponse <DoNotAutomaticallySend | AlwaysSend | NeverSend>] [-SendAddressDefault <String>] [-ShowConversationAsTree <$true | $false>] [-SignatureHtml <String>] [-SignatureText <String>] [-WhatIf [<SwitchParameter>]]

Detailed Description

When run, the Set-MailboxMessageConfiguration cmdlet modifies e-mail message settings for the specified mailbox. Settings include e-mail signature, message format, message options, read receipts, reading pane, and conversations.

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 "User options" entry in the Client Access Permissions topic.

Parameters

Parameter Required Type Description

Identity

Required

Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter

The Identity parameter specifies the mailbox. You can use the following values:

  • GUID

  • ADObjectID

  • Distinguished name (DN)

  • Domain\Account

  • User principal name (UPN)

  • LegacyExchangeDN

  • SmtpAddress

  • Alias

AfterMoveOrDeleteBehavior

Optional

Microsoft.Exchange.Data.Storage.Management.AfterMoveOrDeleteBehavior

The AfterMoveOrDeleteBehavior specifies the behavior after moving or deleting an e-mail item. You can use the following values:

  • OpenPreviousItem

  • OpenNextItem

  • ReturnToView

The default value is OpenNextItem.

AlwaysShowBcc

Optional

System.Boolean

The AlwaysShowBcc parameter specifies whether the blind carbon copy (bcc) field will always appear in the message compose form for the specified mailbox. The default value is $false.

AlwaysShowFrom

Optional

System.Boolean

The AlwaysShowFrom parameter specifies whether the From field will always appear in the message compose form for the specified mailbox. The default value is $false.

AutoAddSignature

Optional

System.Boolean

The AutoAddSignature parameter specifies whether to set the provided e-mail signature to be automatically included in messages sent from the specified mailbox. The default value is $false.

Confirm

Optional

System.Management.Automation.SwitchParameter

The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.

ConversationSortOrder

Optional

Microsoft.Exchange.Data.Storage.Management.ConversationSortOrder

The ConversationSortOrder parameter specifies the sorting of messages in the reading pane when viewed in Conversation mode. Possible values are as follows:

  • Chronological

  • Tree

  • NewestOnTop

  • NewestOnBottom

  • ChronologicalNewestOnTop

  • ChronologicalNewestOnBottom

  • TreeNewestOnBottom

The default value is NewestOnTop.

DefaultFontColor

Optional

System.String

The DefaultFontColor parameter specifies the font color of the text composed in the message form for the specified mailbox. The parameter accepts a hexadecimal color code value in the format of "#xxxxxx."

If the string value provided is unrecognized, the browser application uses a default font color to display the text.

DefaultFontFlags

Optional

Microsoft.Exchange.Data.Storage.Management.FontFlags

The DefaultFontFlags parameter specifies the font effect on the text composed in the message form for the specified mailbox. Accepted values are as follows:

  • Normal

  • Bold

  • Italic

  • Underline

  • All

The default value is Normal, which means none of the effects are selected.

DefaultFontName

Optional

System.String

The DefaultFontName parameter specifies the font type for the text composed in the message form for the specified mailbox. If the string value provided is unrecognized, the browser application uses a default font type to display the text.

DefaultFontSize

Optional

System.Int32

The DefaultFontSize parameter specifies the font size of the text composed in the message form for the specified mailbox. The minimum font size is 1 and the maximum font size is 7. The default value is 2.

DefaultFormat

Optional

Microsoft.Exchange.Data.Storage.Management.MailFormat

The DefaultFormat parameter specifies the default text format in the message compose form for the specified mailbox. Accepted values are Html and PlainText. The default value is Html.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory.

EmptyDeletedItemsOnLogoff

Optional

System.Boolean

The EmptyDeletedItemsOnLogoff parameter specifies whether to delete items from the Deleted Items folder of the specified mailbox upon logging out. The default value is $false.

HideDeletedItems

Optional

System.Boolean

The HideDeletedItems parameter specifies whether when messages in a conversation thread are deleted, they can be set to not display when Conversation View is selected. The default value is $false.

IgnoreDefaultScope

Optional

System.Management.Automation.SwitchParameter

The IgnoreDefaultScope parameter instructs the command to ignore the default recipient scope setting for the Exchange Management Shell session and use the entire forest as the scope. This allows the command to access Active Directory objects that aren't currently in the default scope. Using the IgnoreDefaultScope parameter introduces the following restrictions:

  • You can't use the DomainController parameter. The command uses an appropriate global catalog server automatically.

  • You can only use the DN for the Identity parameter. Other forms of identification, such as alias or GUID, aren't accepted.

NewItemNotification

Optional

Microsoft.Exchange.Data.Storage.Management.NewItemNotification

The NewItemNotification parameter specifies how to provide notification for the arrival of new items in the specified mailbox. You can use the following values:

  • Sound

  • EMailToast

  • VoiceMailToast

  • FaxToast

  • None

  • All

The default value is All.

PreviewMarkAsReadBehavior

Optional

Microsoft.Exchange.Data.Storage.Management.PreviewMarkAsReadBehavior

The PreviewMarkAsReadBehavior parameter specifies the options for marking an item as Read in the reading pane. You can use the following values:

  • Delayed

  • OnSelectionChange

  • Never

The default value is OnSelectionChange.

PreviewMarkAsReadDelaytime

Optional

System.Int32

The PreviewMarkAsReadDelaytime parameter specifies the time in seconds to wait before marking an item as Read. The minimum value is 0, and the maximum value is 30. The default value is 5.

ReadReceiptResponse

Optional

Microsoft.Exchange.Data.Storage.Management.ReadReceiptResponse

The ReadReceiptResponse parameter specifies how to respond to requests for read receipts. You can use the following values:

  • DoNotAutomaticallySend

  • AlwaysSend

  • NeverSend

The default value is DoNotAutomaticallySend.

SendAddressDefault

Optional

System.String

This parameter applies to objects in the cloud-based service. It isn’t available for on-premises deployments.

The SendAddressDefault parameter specifies the default From e-mail address when the user has POP, IMAP, or Hotmail subscriptions configured on their mailbox. The user can override the default From address when they create an e-mail message in Outlook Web App.

You can use one of the following values for SendAddressDefault:

  • Blank, which is represented by the value $null. This indicates no default From address is specified.

  • The user's primary e-mail address. For example, bob@contoso.com.

  • The GUID of a POP, IMAP, or Hotmail subscription that's configured on the user's mailbox.

By default, no default From address is specified on the mailbox. When no default From address is specified, the default behavior is:

  • The primary e-mail address on the mailbox is used for all new messages.

  • The To address of the incoming message is used as the From address for all replies or forwarded messages.

You can find the available values for SendAddressDefault on a mailbox by running the command Get-SendAddress -Mailbox <mailbox>.

ShowConversationAsTree

Optional

System.Boolean

The ShowConversationAsTree parameter specifies how to sort messages in the list view in an expanded conversation. The default value is $false.

SignatureHtml

Optional

System.String

The SignatureHtml parameter specifies that the e-mail signature message contains HTML tags. Any JavaScript code is removed when saving the value.

SignatureText

Optional

System.String

The SignatureText parameter specifies the content of the e-mail signature automatically applied to messages.

The content supports all Unicode characters.

WhatIf

Optional

System.Management.Automation.SwitchParameter

The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

Input Types

To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.

Return Types

To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.

Examples

EXAMPLE 1

This example enables an e-mail signature to be added automatically to messages sent from Kai's mailbox.

Copy Code
Set-MailboxMessageConfiguration -Identity kai -AutoAddSignature $True

EXAMPLE 2

This example sets items deleted from a conversation thread to not show in the list view of the conversation in Kai's mailbox.

Copy Code
Set-MailboxMessageConfiguration -Identity kai -HideDeletedItems $True

EXAMPLE 3

This example sets the compose e-mail message form to show the bcc field always for Kai's mailbox.

Copy Code
Set-MailboxMessageConfiguration -Identity kai -AlwaysShowBcc $True