{"id":486,"date":"2013-09-23T16:32:12","date_gmt":"2013-09-23T14:32:12","guid":{"rendered":"http:\/\/dety.net.ua\/?p=486"},"modified":"2013-09-23T16:33:14","modified_gmt":"2013-09-23T14:33:14","slug":"exchange-2010-move-e-mails-to-another-transport-server","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=486","title":{"rendered":"Exchange 2010 + move e-mails to another transport server"},"content":{"rendered":"<div>1: On exchange EDGE server 1<\/div>\n<div><b>\u00a0<\/b><\/div>\n<div><b>get-queue<\/b><\/div>\n<div><\/div>\n<div>2: Pause the transport services,<\/div>\n<div><\/div>\n<div>3: Suspend the queue<\/div>\n<div><\/div>\n<div><b>get-queue | ? {$_.deliverytype -eq &#8216;dnsconnectordelivery&#8217;} | get-message | suspend-message<\/b><\/div>\n<div><\/div>\n<div>4: Then export those suspended messages:<\/div>\n<div><\/div>\n<div><b>get-queue | ? {$_.DeliveryType -eq &#8216;dnsconnectordelivery&#8217;} | get-message | ForEach-Object {$temp=&#8221;c:\\temp\\&#8221;+$_.InternetMessageID+&#8221;.eml&#8221;;$Temp.Replace(&#8220;&lt;&#8220;,&#8221;_&#8221;);$Temp=$Temp.Replace(&#8220;&gt;&#8221;,&#8221;_&#8221;);Export-Message $_.Identity | AssembleMessage -Path $Temp}<\/b><\/div>\n<div><\/div>\n<div><\/div>\n<div>5: Remove exchange Edge server 1 from the send connector<\/div>\n<div><\/div>\n<div>6: Open c:\\temp folder on exchange Edge server 1<\/div>\n<div><\/div>\n<div>7: Copy all the *.eml files from the c:\\temp folder and remote into exchange Edge server 2.<\/div>\n<div><\/div>\n<div>8: Browse to where exchange is installed on the Edge server (this can be c: or d: drive) eg:<br \/>\nD:\\Program Files\\Microsoft\\Exchange Server\\TransportRoles\\Replay and paste all the .eml files copied from c:\\temp on exchange EDGE server 1.<\/div>\n<div>Since the transport service is running this queue will quickly flush.<\/div>\n<div><\/div>\n<p>9: Return to exchange Edge server 1 and start the transport services again once you have resolved the technical issue with that Edge server.<\/p>\n<p>Took from here: <a href=\"http:\/\/exchangegloves.blogspot.com\/2013\/06\/move-emails-from-one-hub-server-to.html\" target=\"_blank\">http:\/\/exchangegloves.blogspot.com\/2013\/06\/move-emails-from-one-hub-server-to.html<\/a><\/p>\n<p>or so:<\/p>\n<p>In the event a Hub Transport server is completely out, you may have the requirement to move all messages in a queue to another Hub Transport server in your organisation to ensure the messages are delivered.\u00a0 How can you do this?<\/p>\n<p>First you need to export all messages in the current queue.\u00a0 You can do this with the following powershell commands:<\/p>\n<div><strong>$array = @(Get-Message -Queue &#8220;QueueName&#8221; -ResultSize unlimited)<\/strong><\/div>\n<p>&nbsp;<\/p>\n<div><strong>$array | ForEach-Object {$i++;Export-Message $_.Identity | AssembleMessage -Path (&#8220;c:\\MailsExport\\&#8221;+ $i +&#8221;.eml&#8221;)}<\/strong><\/div>\n<p>To import the messages into the new Hub Transport server, simply place the .eml files into the Transport Pickup folder.\u00a0 The new server should immediately start processing the messages.<\/p>\n<p>Took from here: <a href=\"http:\/\/clintboessen.blogspot.com\/2012\/09\/move-messages-to-another-working-queue.html\" target=\"_blank\">http:\/\/clintboessen.blogspot.com\/2012\/09\/move-messages-to-another-working-queue.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1: On exchange EDGE server 1 \u00a0 get-queue 2: Pause the transport services, 3: Suspend the queue get-queue | ? {$_.deliverytype -eq &#8216;dnsconnectordelivery&#8217;} | get-message | suspend-message 4: Then export those suspended messages: get-queue | ? {$_.DeliveryType -eq &#8216;dnsconnectordelivery&#8217;} | get-message | ForEach-Object {$temp=&#8221;c:\\temp\\&#8221;+$_.InternetMessageID+&#8221;.eml&#8221;;$Temp.Replace(&#8220;&lt;&#8220;,&#8221;_&#8221;);$Temp=$Temp.Replace(&#8220;&gt;&#8221;,&#8221;_&#8221;);Export-Message $_.Identity | AssembleMessage -Path $Temp} 5: Remove exchange Edge server 1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,13],"tags":[],"class_list":["post-486","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\/486","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=486"}],"version-history":[{"count":2,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions"}],"predecessor-version":[{"id":488,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/486\/revisions\/488"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}