{"id":2707,"date":"2019-01-15T20:51:03","date_gmt":"2019-01-15T20:51:03","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2707"},"modified":"2019-01-15T20:51:03","modified_gmt":"2019-01-15T20:51:03","slug":"how-to-copy-old-users-mailbox-to-another-users-mailbox-on-office-365-and-exchange-server-using-powershell","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2707","title":{"rendered":"How to copy old user&#8217;s mailbox to another user&#8217;s mailbox on Office 365 and Exchange Server using PowerShell"},"content":{"rendered":"<p>You will come across the issue with leavers mailboxes needing to be\u00a0transferred\u00a0to another users mailbox. If you are looking after on-site exchange, then the process is slightly shorter as you don&#8217;t need to connect to the remote Powershell.<\/p>\n<p>&nbsp;<\/p>\n<p>To connect to O365 first run this PS command:<\/p>\n<p><span style=\"color: #00ff00;\"><strong>$Cred = Get-Credential\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #00ff00;\"><strong>$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri\u00a0<a style=\"color: #00ff00;\" href=\"https:\/\/ps.outlook.com\/powershell\">https:\/\/ps.outlook.com\/powershell<\/a>\u00a0-Credential $cred -Authentication Basic \u2013AllowRedirection\u00a0<\/strong><\/span><\/p>\n<p><span style=\"color: #00ff00;\"><strong>Import-PSSession\u00a0$s<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>PS command to transfer mailbox items:<\/p>\n<p><span style=\"color: #00ff00;\"><b>Search-Mailbox -Identity &#8220;Old User&#8221; -TargetMailbox\u00a0&#8220;Current User&#8221; -TargetFolder\u00a0&#8220;Old-Mailbox&#8221; -LogLevel\u00a0Full<\/b><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You will come across the issue with leavers mailboxes needing to be\u00a0transferred\u00a0to another users mailbox. If you are looking after on-site exchange, then the process is slightly shorter as you don&#8217;t need to connect to the remote Powershell. &nbsp; To connect to O365 first run this PS command: $Cred = Get-Credential\u00a0 $s = New-PSSession -ConfigurationName [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,58,62,73,60,59],"tags":[],"class_list":["post-2707","post","type-post","status-publish","format-standard","hentry","category-exchange-2010","category-exchange-2013","category-microsoft-exchange-server-2016","category-exchange-server-2019","category-office-365","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2707","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2707"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2707\/revisions"}],"predecessor-version":[{"id":2708,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2707\/revisions\/2708"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}