Book Image

Microsoft Exchange Server Powershell Cookbook (Update)

Book Image

Microsoft Exchange Server Powershell Cookbook (Update)

Overview of this book

Table of Contents (21 chapters)
Microsoft Exchange Server PowerShell Cookbook Third Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Working with messages in transport queues


Transport queues are a temporary storage location for messages that are in transit. Each mailbox server can have multiple queues at any given time, depending on the destination of the message. In this recipe, we'll cover several methods that can be used to view queued messages, remove messages from queues, and more.

How to do it...

To view the transport queues that are currently in use on a specific server, use the Get-Queue cmdlet:

Get-Queue -Server tlex01

In this example, the transport queues on the tlex01 server will be returned. The output might look similar to the following screenshot:

In this example, there is one message awaiting retry due to a DNS resolution problem for the destination domain.

How it works...

When running the Get-Queue cmdlet, the queues displayed will vary depending on what types of messages are currently awaiting delivery. The following queue types are used on the mailbox servers:

  • Submission queue: All messages received by a...