Working with messages in transport queues

Transport queues are a temporary storage location for messages that are in transit. Each hub or edge transport 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 ex01

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

How to do it...

In this example, there ...

Get Microsoft Exchange 2010 PowerShell Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.