Mail Export (365 – 365)
Software needed for export:
https://www.manageengine.com/products/free-windows-active-directory-tools/export-and-import-mailbox-pst-tool.html (Exports Mailboxes)
https://www.microsoft.com/en-gb/download/details.aspx?id=30653 (.Net 4.5)
https://www.microsoft.com/en-gb/download/details.aspx?id=42022 (Exchange Web Services)
https://www.microsoft.com/en-gb/download/details.aspx?id=42040 (MAPI Client)
https://cmdletpswmodule.blob.core.windows.net/exopsmodule/Microsoft.Online.CSE.PSModule.Client.application (Exchange PowerShell Module - Open in IE or Edge)
Software Needed for import:
https://aka.ms/downloadazcopy (AzCopy, Move PST to Azure Blob)
https://go.microsoft.com/fwlink/p/?LinkId=544717 (CSV Mapping File)
Pre-Export
- To avoid the cut over time for the users, Add the OU’s to AD Sync and sync the accounts up now.
- Assign the Licenses so that the mailboxes can build
- Assign the custom Attribute for the Address book Policy (Needed later)
Export Mailboxes
- In the Source Tenancy go to https://admin.microsoft.com/AdminPortal/Home#/reportsUsage/MailboxUsage and set the filter to storage :
- Install the Software on a device with enough storage to hold the mailboxes
- Open the PST migration tool
- Add Migration account to 365 as a Global Administrator (Needs to have and exchange License and a.onmicrosoft.com UPN)
- Open Exchange PowerShell
- Edit the account in this command and run it in the PowerShell (Make sure the mailbox has created for the migration account) Get-Mailbox -ResultSize unlimited | Add-MailboxPermission -User "MigrationAccount@***.onmicrosoft.com" -AccessRights FullAccess -InheritanceType all
- Edit the CSV Path and run this command Get-Mailbox -ResultSize Unlimited | Select UserPrincipalName,DisplayName |Export-csv -Path C:\Temp\Export.csv
- Wait a few hours for permissions to propagate
- In PST export add the migration account:
- Under “Export PST” Select All mailboxes and the storage locations for the PST (untick Discovery Search Mailbox and the Migration account) Select User Principal Name for the File Name
- On the next page click Export. This will export the PSTs of the accounts to the Local Storage
- When the Export is complete delete the migration account from Office 365
IMPORT Mailboxes
- In the Exchange Admin (Central Tenancy) Add your user to Export/Import PST Mailboxes:
- Wait for up to 24 hours for the permissions to update and then go to https://protection.office.com/import
- Create new Import Job
- Click through the wizard (Name is lowercase and no spaces & chose Upload your data)
- Copy SAS URL to a text document for later
- Open Azure copy and use this command (azcopy.exe /source:”Location of downloaded PSTs” /Dest:”SAS URL” /V:”Log File Location” /Y) to copy the PSTs to the Azure Blob
- Edit the CSV Location and the ABP to the school code Get-Mailbox -Filter {(UserPrincipalName -like "*onmicrosoft.com") -and (CustomAttribute15 -eq "AVA_ABP")} | Select UserPrincipalName,GUID | export-csv C:\Temp\365.csv
- Copy The user Principal Name from the Export csv in step 7 of the export to the NAME column of the mapping document (you need to add .PST to the end of all CONCATENATE will work the best – Copy the contents of the column and paste over the top selecting “Paste Values”
- Take the GUID from the export in Step 7 and match the UPN to the GUID in the Mapping CSV
- Set the “workload” column to Exchange for all mailboxes and Is Archive to False. The Target Root Folder is /
- Upload the CSV to the PST import in the compliance centre and Validate it
- Office will now validate the files; this may take some time (365 will email you when it is done)
- When done click “Ready to Import to Office 365”
- Select NO for data Filtering and click import data
- The import will take ages
- When the import is done all the mail has migrated
Important Note – All mailbox permissions will need to be recreated in the new tenant