1st method
This method doesn't include calendars but is far easier and doesn't require PSTs to be "cleaned". It may be worth asking staff to let IT Support know whether they want to keep their calendars to gauge with method would be better to go with.
Software Needed for import:
https://go.microsoft.com/fwlink/p/?LinkId=544717 (CSV Mapping File)
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)
- 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:
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 to copy the PSTs to the Azure Blob
azcopy.exe /source:”Location of downloaded PSTs” /Dest:”SAS URL” /V:”Log File Location” /Y
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
2nd Method
This method includes calendars in the PST but requires the PSTs to be "cleaned" as after export, the "Inbox" folder is put into a "Top of information store" folder.
Guide used
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
Ediscovery Manager role required – enables export
- Compliance center, new search, select users, export to to PST.
- In the Security and Compliance center go to Search, Content Search:
Create a new search
Edit the locations
Then select the mailboxes you want to export, or just select all
Back on the search page, click on the newly created search and wait for the results to finish (status is at the bottom of the window), once finished click export results
Review the options then click Export (All items and one PST for each mailbox is fine)
You must use Edge or internet explorer for this step, because of course you do
"Clean" PSTs
Now we need to clean the PSTs, this method is only really suitable for relatively low amounts of PSTs. If you have more than said "relatively low amounts" then either get the staff to do this bit themselves or use method 1.
All you have to do is open the PST one by one into Outlook and move the folders back into their correct order.
This is what they look like fresh off the import wagon:
This is what they should look like:
note, if dragging and dropping doesnt change the order, try right click moving.
Import
Refer to method 1 import, the process is pretty much the same