{"id":698,"date":"2015-05-07T11:04:09","date_gmt":"2015-05-07T09:04:09","guid":{"rendered":"http:\/\/dety.net.ua\/?p=698"},"modified":"2015-05-07T11:07:22","modified_gmt":"2015-05-07T09:07:22","slug":"exchange-2010-work-with-queues","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=698","title":{"rendered":"Exchange 2010 + Work with queues"},"content":{"rendered":"<p>1. Get the queue list<\/p>\n<blockquote><p>C:\\&gt;get-queue -server your-server<\/p>\n<p>Identity\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DeliveryType Status MessageCount NextHopDomain<br \/>\n&#8212;&#8212;&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;-<br \/>\nyourserver\\183671\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DnsConnec&#8230; Ready\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 gmail.com<br \/>\nyourserver\\Submission\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Undefined\u00a0\u00a0\u00a0 Ready\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Submission<br \/>\nyourserver\\Shadow\\151617\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ShadowRed&#8230; Ready\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 yourserver<\/p><\/blockquote>\n<p>2. Export all the messages from a queue, e.g.:<\/p>\n<blockquote><p>$exp = get-queue <strong>-queue<\/strong> &#8220;yourserver\\183671&#8243;<\/p>\n<p>$exp | ForEach-Object<\/p>\n<p>{<\/p>\n<p>$Temp=&#8221;C:\\Export\\&#8221;+$_.InternetMessageID+&#8221;.eml&#8221;;<\/p>\n<p>$Temp=$Temp.Replace(&#8220;&lt;&#8220;,&#8221;_&#8221;);<\/p>\n<p>$Temp=$Temp.Replace(&#8220;&gt;&#8221;,&#8221;_&#8221;);<\/p>\n<p>Export-Message $_.Identity | AssembleMessage -Path $Temp<\/p>\n<p>}<\/p><\/blockquote>\n<p>3. Place the exported messages to Replay directory on another server to send them.<\/p>\n<p>P.S.: There was the &#8220;$exp&#8221; variable anounced because direct script didn&#8217;t work for me. This trick doesn&#8217;t work with the &#8220;Shadow&#8221; queue. \ud83d\ude41<\/p>\n<p>Source:\u00a0<a href=\"http:\/\/blogs.technet.com\/b\/messaging_with_communications\/archive\/2011\/04\/22\/how-to-manage-exchange-2010-message-queues.aspx\" target=\"_blank\">http:\/\/blogs.technet.com\/b\/messaging_with_communications\/archive\/2011\/04\/22\/how-to-manage-exchange-2010-message-queues.aspx <\/a><\/p>\n<p><a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/aa995987%28v=exchg.141%29.aspx?f=255&amp;MSPPError=-2147217396\" target=\"_blank\">https:\/\/technet.microsoft.com\/en-us\/library\/aa995987%28v=exchg.141%29.aspx?f=255&amp;MSPPError=-2147217396<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Get the queue list C:\\&gt;get-queue -server your-server Identity\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DeliveryType Status MessageCount NextHopDomain &#8212;&#8212;&#8211;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8212;&#8212;&#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;- yourserver\\183671\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DnsConnec&#8230; Ready\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 gmail.com yourserver\\Submission\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Undefined\u00a0\u00a0\u00a0 Ready\u00a0 0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Submission yourserver\\Shadow\\151617\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ShadowRed&#8230; Ready\u00a0 1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 yourserver 2. Export all the messages from a queue, e.g.: $exp = get-queue -queue &#8220;yourserver\\183671&#8243; $exp | ForEach-Object { $Temp=&#8221;C:\\Export\\&#8221;+$_.InternetMessageID+&#8221;.eml&#8221;; $Temp=$Temp.Replace(&#8220;&lt;&#8220;,&#8221;_&#8221;); $Temp=$Temp.Replace(&#8220;&gt;&#8221;,&#8221;_&#8221;); Export-Message [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,13],"tags":[],"class_list":["post-698","post","type-post","status-publish","format-standard","hentry","category-exchange","category-novosti"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=698"}],"version-history":[{"count":4,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/698\/revisions"}],"predecessor-version":[{"id":702,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/698\/revisions\/702"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}