Book Image

Microsoft Exchange Server PowerShell Essentials

By : Biswanath Banerjee
Book Image

Microsoft Exchange Server PowerShell Essentials

By: Biswanath Banerjee

Overview of this book

PowerShell has become one of the most important skills in an Exchange administrator's armory. PowerShell has proved its mettle so widely that, if you're not already starting to learn PowerShell, then you're falling behind the industry. It isn't difficult to learn PowerShell at all. In fact, if you've ever run commands from a CMD prompt, then you'll be able to start using PowerShell straightaway. This book will walk you through the essentials of PowerShell in Microsoft Exchange Server and make sure you understand its nitty gritty effectively. You will first walk through the core concepts of PowerShell and their applications. This book discusses ways to automate tasks and activities that are performed by Exchange administrators and that otherwise take a lot of manual effort. Microsoft Exchange PowerShell Essentials will provide all the required details for Active Directory, System, and Exchange administrators to help them understand Windows PowerShell and build the required scripts to manage the Exchange Infrastructure.
Table of Contents (17 chapters)
Microsoft Exchange Server PowerShell Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Managing DSN Messages


Delivery Status Notification (DSN) is used to send Non-Delivery Reports (NDRs) to messages senders. There are lots of in-built DSN messages that one can use in Exchange 2013/2016 or create custom DSN messages if the built-in DSN messages do not suit your organizations requirements. The *-SystemMessage cmdlets are used to manage DSN in Exchange.

To retrieve a list of all built-in DSN messages, run the following command

Get-SystemMessage -Original

To view a list of all Custom DSN messages, type the following:

Get-SystemMessage

The following command creates a custom plain text DSN message 5.2.2 sent to internal recipients in English:

You can use Set-SystemMessage to change the properties of the existing custom DSN:

Finally, use Remove-SystemMessage to remove the custom DSN message:

Remove-SystemMessage En\Internal\5.2.2

If you want to monitor your custom DSN and want it to be copied to a mailbox, use the following commands to associate an Exchange recipient with the MicrosoftExchagneRecipientReplyRecipient...