Rexxer

Some tips for me and other

Exchange 2010 + Work with queues

1. Get the queue list

C:\>get-queue -server your-server

Identity                                    DeliveryType Status MessageCount NextHopDomain
——–                                    ———— —— ———— ————-
yourserver\183671                          DnsConnec… Ready  0            gmail.com
yourserver\Submission                      Undefined    Ready  0            Submission
yourserver\Shadow\151617                   ShadowRed… Ready  1            yourserver

2. Export all the messages from a queue, e.g.:

$exp = get-queue -queue “yourserver\183671″

$exp | ForEach-Object

{

$Temp=”C:\Export\”+$_.InternetMessageID+”.eml”;

$Temp=$Temp.Replace(“<“,”_”);

$Temp=$Temp.Replace(“>”,”_”);

Export-Message $_.Identity | AssembleMessage -Path $Temp

}

3. Place the exported messages to Replay directory on another server to send them.

P.S.: There was the “$exp” variable anounced because direct script didn’t work for me. This trick doesn’t work with the “Shadow” queue. 🙁

Source: http://blogs.technet.com/b/messaging_with_communications/archive/2011/04/22/how-to-manage-exchange-2010-message-queues.aspx

https://technet.microsoft.com/en-us/library/aa995987%28v=exchg.141%29.aspx?f=255&MSPPError=-2147217396

Comments are currently closed.