Exchange 2010 – Export single Message from Queue

Hi Readers,

There can be a situation where you have to export message from the queue for analysis.

We had some situations where we had to do that , one was where we were getting below error for one message on transport server.

A message with the Internal Message ID 231753 was rejected by the remote server. This message will be deferred and retried because it was marked for retry if rejected. Other messages may also have encountered this error.

We have checked the server queue & found the message (right clicked & suspended it) –> can be done from command line as well.

After that we used the below shell command to export the message:

Get-Message | where{$_.subject -like “printing*”} | Export-Message | AssembleMessage c:\printing.eml

Now you can check the message & analyze it.

Regards

Sukhija Vikas

http://msexchange.me

Advertisements

2 thoughts on “Exchange 2010 – Export single Message from Queue

  1. Indeed kindly do mention a cmdlet to suspend the message as well while doing this from shell otherwise one gets a error “The operation wasn’t performed on the message with identity XX. You must suspend the message first.”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s