{"id":1993,"date":"2018-07-02T09:32:41","date_gmt":"2018-07-02T07:32:41","guid":{"rendered":"https:\/\/msb365.abstergo.ch\/?p=1993"},"modified":"2023-06-23T13:20:23","modified_gmt":"2023-06-23T11:20:23","slug":"migrate-from-gmail-to-office-365","status":"publish","type":"post","link":"https:\/\/www.msb365.blog\/?p=1993","title":{"rendered":"Migrate from Gmail to Office 365"},"content":{"rendered":"<p>There are many articles in the field about migrating from on-premise Exchange to Office 365, but how about migrating from Google\u2019s Gmail to Office 365?<\/p>\n<p>There are several ways of migrating to Office 365, the most common way I have described in another article on my Blog <a href=\"https:\/\/msb365.abstergo.ch\/?p=1605\" target=\"_blank\" rel=\"noopener\">HERE<\/a>. Some of these solutions also work for a Google migration. However, in this article I want to present a way, which makes it really easy to handle this migration project:<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #808000;\">Exporting Data from Gmail:<\/span><\/h4>\n<p>Here we need to open the Google Admin console with an Administrator Account. By Navigate to the Users page, we see a List of all Mailboxes in Gmail.<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-1994\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/1-1.png\" alt=\"\" width=\"710\" height=\"320\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/1-1.png 710w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/1-1-300x135.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/1-1-600x270.png 600w\" sizes=\"(max-width: 710px) 100vw, 710px\" \/><\/p>\n<p>Here we need to export all Users E-Mail addresses, which has to be migrated to Office 365. I recommend you, to write down all E-Mail addresses to a Notepad File for later.<\/p>\n<p>&nbsp;<\/p>\n<h4><strong>Import Users to O365 &#8211; We need to know:<\/strong><\/h4>\n<p>There are different ways, how to create new users, one option is to make that user by user, or in our case, we can choose a bulk upload by CSV File.<\/p>\n<p><strong>NOTE<\/strong>: Before the MX-Records are not set to Office 365, the created mailboxes can only receive E-mails for other Mailboxes in the Office 365 Tennant.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #808000;\">Preparing Target:<\/span><\/h4>\n<p>Before we can start migrating, we need to be sure, that the target environment is ready for the data. That means we need to create first our Office 365 Mailboxes.<\/p>\n<p>That means, for each User in Gmail, which we want to migrate to Office 365, we need to create a new Mailbox in Office 365.<\/p>\n<p>To perform this I recommend you, to use PowerShell. Here is how the cmdlet could look for that:First, we need to get a CSV File for our small script. This CSV File needs the following information and Header shown as below:<\/p>\n<pre class=\"\">DisplayName,FirstName,LastName,UserPrincipalName<\/pre>\n<pre class=\"\">That means as example:\r\nDisplayName,FirstName,LastName,UserPrincipalName\r\nDesmondMiles,Desmond,Miles,dmiles@contoso.com<\/pre>\n<p>As second Step we need to set a variable for entering passwords. This is just one way how we can do that, we also can set an initial password for each user or however you want to do that for your project. To do that we need to run PowerShell and first we connect to our Office 365 Tenant. How to do that you can see <a href=\"https:\/\/msb365.abstergo.ch\/?ufaq=connect-exchange-online-powershell\" target=\"_blank\" rel=\"noopener\">HERE<\/a>.<\/p>\n<pre class=\"\">After the successful connection we need the following command:\r\n$Password=Read-Host \u201cEnter Password\u201d \u2013AsSecureString<\/pre>\n<p>Now we start creating all users from our CSV File by using the following command:<\/p>\n<pre class=\"\">Import-CSV | ForEach {New-Mailbox -Name $_.name -firstname $_.firstname -lastname $_.lastname -userPrincipalName $_.userprincipalname -OrganizationalUnit Users -Password $Password}<\/pre>\n<p>After doing that, it is important to add the right License to the users.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #808000;\">Importing Mailbox Data (emails):<\/span><\/h4>\n<p>Now we need to create migration endpoints. This can be done in the Exchange online Admin center. This can be found in \u201c<strong>Recipients<\/strong>\u201d &gt; \u201c<strong>Migration<\/strong>\u201d. Here we need to create a new endpoint by using the \u201c<strong>+<\/strong>\u201d sign and then \u201c<strong>IMAP<\/strong>\u201d. Google needs the following IMAP server information:<\/p>\n<pre class=\"\">IMAP server: imap.google.com\r\nAuthentication: Basic\r\nEncryption: SSL\r\nPort: 993<\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1996\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/2-1.png\" alt=\"\" width=\"850\" height=\"334\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/2-1.png 850w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/2-1-300x118.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/2-1-768x302.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/2-1-600x236.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/2-1-780x306.png 780w\" sizes=\"(max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>In the next step, we can define some additional information, here my example:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1997\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/3-1.png\" alt=\"\" width=\"847\" height=\"332\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/3-1.png 847w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/3-1-300x118.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/3-1-768x301.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/3-1-600x235.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/3-1-780x306.png 780w\" sizes=\"(max-width: 847px) 100vw, 847px\" \/><\/p>\n<p>After this step, we click on \u201cnew\u201d and as we can see, the migration endpoint is set.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1998\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/4-1.png\" alt=\"\" width=\"928\" height=\"515\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/4-1.png 928w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/4-1-300x166.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/4-1-768x426.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/4-1-600x333.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/4-1-780x433.png 780w\" sizes=\"(max-width: 928px) 100vw, 928px\" \/><\/p>\n<p>Before we start creating a migration Batch from the Exchange online console, we need to create a second CSV file with the following information:<\/p>\n<pre class=\"\">EmailAddress,UserName,Password<\/pre>\n<p>To show an example again of the CSV file:<\/p>\n<pre class=\"\">EmailAddress,UserName,Password\r\nDesmond.miles@contoso.com,dmiles@contoso.com,pass@word$<\/pre>\n<p><strong>Note<\/strong>: Here the password has to match with the google ones and the one. If needed, we have to reset the passwords in the Google Admincenter for the migration. Here is it important, to inform the user that we have done that for migration reasons\u2026<\/p>\n<p>Now we are ready to migrate to Exchange online by using migration batch\u2026<br \/>\nWe click on \u201c<strong>+<\/strong>\u201d &gt; \u201c<strong>Migrate to Exchange online<\/strong>\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2000\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/5-1.png\" alt=\"\" width=\"868\" height=\"513\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/5-1.png 868w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/5-1-300x177.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/5-1-768x454.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/5-1-600x355.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/5-1-780x461.png 780w\" sizes=\"(max-width: 868px) 100vw, 868px\" \/><\/p>\n<p>Here we choose \u201c<strong>IMAP migration<\/strong>\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2001\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/6-1.png\" alt=\"\" width=\"688\" height=\"328\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/6-1.png 688w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/6-1-300x143.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/6-1-600x286.png 600w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/p>\n<p>Here we come back now to our second CSV File, we click \u201c<strong>Browse<\/strong>\u201d to select the File:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2002\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/7.png\" alt=\"\" width=\"534\" height=\"247\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/7.png 534w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/7-300x139.png 300w\" sizes=\"(max-width: 534px) 100vw, 534px\" \/><\/p>\n<p>After that we can name the migration Batch and make some further small settings. In the end, we click on \u201c<strong>New<\/strong>\u201d and the Batch will be queued for Email migration.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2003\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/8.png\" alt=\"\" width=\"518\" height=\"522\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/8.png 518w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/8-150x150.png 150w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/8-298x300.png 298w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/8-100x100.png 100w\" sizes=\"(max-width: 518px) 100vw, 518px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #808000;\">Importing Mailbox Data (contact and calendars)<\/span><\/h4>\n<p>After the Mail users and Mailboxes are created and migrated to Office 365, we still have some points open. One of them is to migrate E-Mail contacts. To do that the User has to go to his contacts in Gmail, in the List the user can click on \u201c<strong>More<\/strong>\u201d and choose \u201c<strong>Export\u2026<\/strong>\u201d.<\/p>\n<p>Here the User chooses the following settings:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2004\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/9.png\" alt=\"\" width=\"546\" height=\"338\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/9.png 546w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/9-300x186.png 300w\" sizes=\"(max-width: 546px) 100vw, 546px\" \/><\/p>\n<p>Now the File can be saved on the User&#8217;s computer.<\/p>\n<p>The User needs now to login to his Office 365 Account In the Web App the user can choose the option \u201c<strong>People<\/strong>\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2005\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/10.png\" alt=\"\" width=\"369\" height=\"31\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/10.png 369w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/10-300x25.png 300w\" sizes=\"(max-width: 369px) 100vw, 369px\" \/><\/p>\n<p>After that the User go to Settings and clicks on \u201c<strong>Import Contacts<\/strong>\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2006\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/11.png\" alt=\"\" width=\"161\" height=\"192\" \/><\/p>\n<p>Now the exported CSV File can be selected:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2007\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/12.png\" alt=\"\" width=\"792\" height=\"252\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/12.png 792w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/12-300x95.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/12-768x244.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/12-600x191.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/12-780x248.png 780w\" sizes=\"(max-width: 792px) 100vw, 792px\" \/><\/p>\n<p>Now the Import will start to \u201c<strong>My Contacts<\/strong>\u201d.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #808000;\">Import Calendars:<\/span><\/h4>\n<p>After we have migrated the Mailbox and the users has migrated their personal contacts, we need now to show the user, how he can import the calendar items.<\/p>\n<p>For that, the user has to go to his Gmail calendar, then the user need to click on \u201c<strong>Settings<\/strong>\u201d and then again \u201c<strong>Settings<\/strong>\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2009\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/13.png\" alt=\"\" width=\"282\" height=\"335\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/13.png 282w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/13-253x300.png 253w\" sizes=\"(max-width: 282px) 100vw, 282px\" \/><\/p>\n<p>Now the user moves to \u201cCalendars\u201d and clicks on export. The calendar will now be saved as a ZIP file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2010\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/14.png\" alt=\"\" width=\"1040\" height=\"458\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/14.png 1040w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/14-300x132.png 300w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/14-768x338.png 768w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/14-1024x451.png 1024w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/14-600x264.png 600w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/14-780x344.png 780w\" sizes=\"(max-width: 1040px) 100vw, 1040px\" \/><\/p>\n<p>For importing user calendars, the user has to use his Outlook Client.<br \/>\nHere he will navigate to \u201c<strong>File<\/strong>\u201d &gt; \u201c<strong>Open&amp;Export<\/strong>\u201d &gt; \u201c<strong>Import\/Export<\/strong>\u201d.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2011\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/15.png\" alt=\"\" width=\"574\" height=\"400\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/15.png 574w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/15-300x209.png 300w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/p>\n<p>Now it has to be chosen: \u201c<strong>Import an iCalendar<\/strong>\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2012\" src=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/16.png\" alt=\"\" width=\"450\" height=\"345\" srcset=\"https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/16.png 450w, https:\/\/msb365.abstergo.ch\/wp-content\/uploads\/2018\/05\/16-300x230.png 300w\" sizes=\"(max-width: 450px) 100vw, 450px\" \/><\/p>\n<p>Now the File has to be chosen and after the Import will be imported.<\/p>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #808000;\">Preparing DNS:<\/span><\/h4>\n<p>After all is migrated, we need to change our MX-Records, how doing that, I have described in another article which you can find <a href=\"https:\/\/msb365.abstergo.ch\/?p=1832\" target=\"_blank\" rel=\"noopener\">HERE<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many articles in the field about migrating from on-premise Exchange to Office 365, but how about migrating from Google\u2019s Gmail to Office 365? There are several ways of migrating to Office 365, the most common way I have described in another article on my Blog HERE. Some of these solutions also work for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2015,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[1923,2],"tags":[],"class_list":["post-1993","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-365","category-exchange"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/1993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1993"}],"version-history":[{"count":14,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/1993\/revisions"}],"predecessor-version":[{"id":5224,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/posts\/1993\/revisions\/5224"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=\/wp\/v2\/media\/2015"}],"wp:attachment":[{"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.msb365.blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}