Applies to: Exchange Server 2013, Exchange Online

Topic Last Modified: 2013-01-14

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

For information about the parameter sets in the Syntax section below, see Syntax.

Syntax

Set-MailboxMessageConfiguration -Identity <MailboxIdParameter> [-AfterMoveOrDeleteBehavior <OpenPreviousItem | OpenNextItem | ReturnToView>] [-AlwaysShowBcc <$true | $false>] [-AlwaysShowFrom <$true | $false>] [-AutoAddSignature <$true | $false>] [-AutoAddSignatureOnMobile <$true | $false>] [-CheckForForgottenAttachments <$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>] [-EmailComposeMode <Inline | SeparateForm>] [-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>] [-SignatureTextOnMobile <String>] [-UseDefaultSignatureOnMobile <$true | $false>] [-WhatIf [<SwitchParameter>]]

Examples

EXAMPLE 1

This example enables an email 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 email message form to show the bcc field always for Kai's mailbox.

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

Detailed Description

When run, the Set-MailboxMessageConfiguration cmdlet modifies email message settings for the specified mailbox. Settings include email 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 Clients and Mobile Devices 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 parameter specifies the behavior after moving or deleting an email 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 email signature to be automatically included in messages sent from the specified mailbox. The default value is $false.

AutoAddSignatureOnMobile

Optional

System.Boolean

The AutoAddSignatureOnMobile parameter specifies whether to set the provided email signature to be automatically included in messages sent from the specified mailbox when using a mobile device. The default value is $false.

CheckForForgottenAttachments

Optional

System.Boolean

The CheckForForgottenAttachments parameter specifies whether users see a reminder prompt when they try to send a message that includes a reference to a file they intended to attach to a message, but didn't attach it yet. This value is set to $true by default. For example, when this value is set to $true, if the text of an email message includes the text "Please see the attached Word document", and the message doesn't yet have a file attached, upon clicking Send, the user is prompted with a reminder dialog box that allows them to go back to the message and attach a file, or ignore the message and proceed with sending the mail. If this value is set to $false, users don't see a reminder prompt when the text of an email message they intend to send suggests that they're going to attach a file.

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.

EmailComposeMode

Optional

Microsoft.Exchange.Data.Storage.Management.EmailComposeMode

The EmailComposeMode parameter specifies whether users compose email replies in the preview pane of Microsoft Office Outlook Web App by default. This value is set to inline by default. For example, if this option is set to inline, when users select a message in their Inbox, and then click Reply, they compose the reply message in the preview pane of Outlook Web App. If this value is set to SeparateForm, when users select a message in their Inbox, and then click Reply, they compose the reply message in a new browser window. When composing a message in inline compose mode, users can click the window icon in the upper-right corner of the Outlook Web App preview pane to reply to the message in a separate window.

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 email address when users have POP, IMAP, or Hotmail subscriptions configured on their mailbox. Users can override the default From address when they create an email message in Outlook Web App.

You can use one of the following values for the SendAddressDefault parameter:

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

  • The user's primary email 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 email 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 email 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 email signature automatically applied to messages.

The content supports all Unicode characters.

SignatureTextOnMobile

Optional

System.String

The SignatureTextOnMobile parameter specifies the content of the email signature automatically applied to messages sent from a mobile device.

The content supports all Unicode characters.

UseDefaultSignatureOnMobile

Optional

System.Boolean

The UseDefaultSignatureOnMobile parameter specifies whether to use the default signature used on a desktop device when using the Exchange App. The default value is $false.

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.