Applies to: Exchange Server 2007 SP3, Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007
Topic Last Modified: 2007-01-02

This topic explains how to use the Exchange Management Shell to modify a customized delivery status notification (DSN) message in Exchange Server 2007 on a computer that has the Hub Transport server role or the Edge Transport server role installed.

Note:
You can only use the Set-SystemMessage command to modify DSN messages that have already been customized by using the New-SystemMessage command. If you want to customize the original text of a default DSN message provided by Exchange Server 2007, you must use the New-SystemMessage command. For more information about how to create a new customized DSN message, see How to Create a New DSN Message.
Note:
You cannot use the Exchange Management Console to perform the procedures in this topic. Instead, you must use the Exchange Management Shell. For more information about how to use the Exchange Management Shell, see Using the Exchange Management Shell.

Before You Begin

To perform these procedures, the account you use must be delegated the following:

  • Exchange Organization Administrator role

To perform the following procedures on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Also, before you perform these procedures, you must specify the identity of the message and prepare the text that you want to include in the message. For more information about how to specify the identity of a DSN message and how to work with the text of a customized DSN message, including how to format HTML DSN messages, see the following topics:

Procedure

You can modify a customized DSN message by using the following command syntax:

Copy Code
Set-SystemMessage <Identity> -Text <"DSN message text to display">

To use the Exchange Management Shell to modify a customized DSN message

  • Run the following command:

    Copy Code
    Set-SystemMessage En\Internal\5.1.2 -Text "The mailbox you tried to send an e-mail message to is disabled and is no longer accepting message. Please contact the Help Desk at extension 123 for assistance."
    

You can include HTML tags when you modify a customized DSN message by using the following command syntax:

Copy Code
Set-SystemMessage <Identity> -Text <'HTML DSN message text to display with <A HREF="url">hypertext</A>.'>

To use the Exchange Management Shell to modify a customized DSN message and add HTML tags to the text

  • Run the following command:

    Copy Code
    Set-SystemMessage En\Internal\5.1.2 -Text 'The mailbox you tried to send an e-mail message to is <B>disabled</B>. Please visit <A HREF="http://it.contoso.com">Internal Support</A> or contact &quot;InfoSec&quot; for more information.'
    

For More Information

For detailed syntax and parameter information, see Set-SystemMessage.

For information about how to manage DSN messages on an Exchange server, see the following topics: