{"id":884,"date":"2016-02-06T12:58:14","date_gmt":"2016-02-06T12:58:14","guid":{"rendered":"https:\/\/www.mozesoft.com\/blog\/?p=884"},"modified":"2020-04-08T12:59:54","modified_gmt":"2020-04-08T12:59:54","slug":"migrate-exchange-mailbox-to-exchange-online-with-powershell","status":"publish","type":"post","link":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/","title":{"rendered":"Migrate Exchange Mailbox to Exchange Online with PowerShell"},"content":{"rendered":"\n<p>In this blog post, Show you ways to migrate a user mailbox during a hybrid Configuration to Exchange Online using PowerShell.<\/p>\n\n\n\n<p>Using PowerShell to maneuver hybrid mailboxes can same many clicks If using the migration wizard from the Office 365 portal.<\/p>\n\n\n\n<p>In my current environment, I even have Exchange Server 2016 In Hybrid configuration with Exchange Online.<br>\nRequirements<\/p>\n\n\n\n<p>To get this done you&#8217;ll need:<\/p>\n\n\n\n<p>Global Office 365 user admin account<br>\n Local Exchange Server Administrator account (or account which will perform migration)<\/p>\n\n\n\n<p>Get Started and Migrate Users<\/p>\n\n\n\n<p>To get started, Run the cmdlet below and obtain my Office 365 user admin credential saved.<\/p>\n\n\n\n<p>$msolcred = get-credential -Message &#8220;Enter Exchange Online Admin&#8221;<\/p>\n\n\n\n<p>Next, Hook up with Exchange Online using the code below.<\/p>\n\n\n\n<p>$ExchangeSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri &#8220;https:\/\/outlook.office365.com\/powershell-liveid\/&#8221; -Credential $msolcred -Authentication &#8220;Basic&#8221; -AllowRedirection<\/p>\n\n\n\n<p>Now, Import the session<\/p>\n\n\n\n<p>Import-PSSession $ExchangeSession<\/p>\n\n\n\n<p>Next, Get my Local Exchange Server admin credential<\/p>\n\n\n\n<p>$exadmin = Get-Credential -Message &#8220;Enter Local Exchange Migration Admin&#8221;<\/p>\n\n\n\n<p>At this stage, I even have all the username and passwords that i want and now I\u2019ll start the migration.<\/p>\n\n\n\n<p>The first line will as for the Alias of the migrated user.<\/p>\n\n\n\n<p>$x = Read-Host &#8220;UPN of migrated User&#8221;<\/p>\n\n\n\n<p>Now, Start the migration with the road below.<\/p>\n\n\n\n<p>Note: Please change Remote Hostname &amp; Remote Delivery Domain<\/p>\n\n\n\n<p>New-MoveRequest -Identity $x -Remote -RemoteHostName hybrid.yourdomain -TargetDeliveryDomain yourdomain.mail.onmicrosoft.com -RemoteCredential $exadmin -BadItemLimit 1000<\/p>\n\n\n\n<p>To monitor the migration and see status I\u2019ll use the road below:<\/p>\n\n\n\n<p>Get-MoveRequest<\/p>\n\n\n\n<p>Get-MoveRequest | Get-MoveRequestStatistics<\/p>\n\n\n\n<p>If you add the switch below, Migration will need to be completed manually<\/p>\n\n\n\n<p>avertWhenReadyToComplete<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog post, Show you ways to migrate a user mailbox during a hybrid Configuration to Exchange Online using PowerShell. Using PowerShell to maneuver hybrid mailboxes can same many clicks If using the migration wizard from the Office 365 portal. In my current environment, I even have Exchange Server 2016 In Hybrid configuration with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-884","post","type-post","status-publish","format-standard","hentry","category-exchange-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Migrate Exchange Mailbox to Exchange Online with PowerShell - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Migrate Exchange Mailbox to Exchange Online with PowerShell - Blog\" \/>\n<meta property=\"og:description\" content=\"In this blog post, Show you ways to migrate a user mailbox during a hybrid Configuration to Exchange Online using PowerShell. Using PowerShell to maneuver hybrid mailboxes can same many clicks If using the migration wizard from the Office 365 portal. In my current environment, I even have Exchange Server 2016 In Hybrid configuration with [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-06T12:58:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-08T12:59:54+00:00\" \/>\n<meta name=\"author\" content=\"Adsank\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Adsank\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/\"},\"author\":{\"name\":\"Adsank\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"headline\":\"Migrate Exchange Mailbox to Exchange Online with PowerShell\",\"datePublished\":\"2016-02-06T12:58:14+00:00\",\"dateModified\":\"2020-04-08T12:59:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/\"},\"wordCount\":263,\"articleSection\":[\"Exchange Server\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/\",\"name\":\"Migrate Exchange Mailbox to Exchange Online with PowerShell - Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\"},\"datePublished\":\"2016-02-06T12:58:14+00:00\",\"dateModified\":\"2020-04-08T12:59:54+00:00\",\"author\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.mozesoft.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Migrate Exchange Mailbox to Exchange Online with PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#website\",\"url\":\"https:\/\/www.mozesoft.com\/blog\/\",\"name\":\"Blog\",\"description\":\"IT Knowledgebase\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.mozesoft.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c\",\"name\":\"Adsank\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g\",\"caption\":\"Adsank\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Migrate Exchange Mailbox to Exchange Online with PowerShell - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/","og_locale":"en_US","og_type":"article","og_title":"Migrate Exchange Mailbox to Exchange Online with PowerShell - Blog","og_description":"In this blog post, Show you ways to migrate a user mailbox during a hybrid Configuration to Exchange Online using PowerShell. Using PowerShell to maneuver hybrid mailboxes can same many clicks If using the migration wizard from the Office 365 portal. In my current environment, I even have Exchange Server 2016 In Hybrid configuration with [&hellip;]","og_url":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/","og_site_name":"Blog","article_published_time":"2016-02-06T12:58:14+00:00","article_modified_time":"2020-04-08T12:59:54+00:00","author":"Adsank","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Adsank","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/#article","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/"},"author":{"name":"Adsank","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"headline":"Migrate Exchange Mailbox to Exchange Online with PowerShell","datePublished":"2016-02-06T12:58:14+00:00","dateModified":"2020-04-08T12:59:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/"},"wordCount":263,"articleSection":["Exchange Server"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/","url":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/","name":"Migrate Exchange Mailbox to Exchange Online with PowerShell - Blog","isPartOf":{"@id":"https:\/\/www.mozesoft.com\/blog\/#website"},"datePublished":"2016-02-06T12:58:14+00:00","dateModified":"2020-04-08T12:59:54+00:00","author":{"@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c"},"breadcrumb":{"@id":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.mozesoft.com\/blog\/migrate-exchange-mailbox-to-exchange-online-with-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mozesoft.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Migrate Exchange Mailbox to Exchange Online with PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/www.mozesoft.com\/blog\/#website","url":"https:\/\/www.mozesoft.com\/blog\/","name":"Blog","description":"IT Knowledgebase","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mozesoft.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/79fc1ff8cfa9fe3f16bedffefc53359c","name":"Adsank","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mozesoft.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/16e1b860aa1c6c11b188d686f734c33318307888d91fee8cd1550025f1c788a0?s=96&d=mm&r=g","caption":"Adsank"}}]}},"_links":{"self":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/comments?post=884"}],"version-history":[{"count":1,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/884\/revisions"}],"predecessor-version":[{"id":885,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/posts\/884\/revisions\/885"}],"wp:attachment":[{"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/media?parent=884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/categories?post=884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mozesoft.com\/blog\/wp-json\/wp\/v2\/tags?post=884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}