Export mailbox from online user
- Go to https://compliance.microsoft.com
- Click on search content
- Open the tab “search”
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-5.png)
4. Create a new query, give a usefull name
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-7.png)
5. Select “Exhange-mailbox” and select the users you like to export
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-8.png)
6. Select that you want to export the e-mails
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-9.png)
7. Click on the created qeury and click on actions
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-10.png)
8. Choose in this menu for “export results”
9. Open the second tab “Export”
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-11.png)
10. Follow the instructions and “Export results”
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-12.png)
11. This wil link to a (download)tool where you can paste the export key and download the files
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-13-1024x733.png)
Remove the online user and create on synced domain controller
- Remove the user online in Office 365
- Make sure that the user is completly gone
- Create the user on the domaincontroller
- Extra you could create a unique proxy adres to link the mailbox, otherwise you will get an error for multiple records found.
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-14.png)
!! Make sure that the user has a mailbox before you continue !!
Import mailbox into on-premise synced user
- Go to https://compliance.microsoft.com
- Click on information management
- Open the tab “Import”
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-15.png)
4. Create a new import task with a unique name
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-16.png)
5. Choose how you want to upload your files
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-17-1024x588.png)
6. Uploading the files is done true “Azure AzCopy” you can download this on this page
7. Copy the SAS-URL and install “Azure AzCopy”
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-18-1024x693.png)
8. Create the upload cmd as following, the bold highlighted text are the things that you need to change for personal use
azcopy /Source:"D:\tmp\tom" /Dest:"https://4ca03d.blob.core.windows.net/i5oIdqJ06T10%3A14%3A50Z" /nc:2 /Y
9. Run the command in the AzCopy terminal
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-19.png)
10. Create the mapping for the users this is done in a .csv file
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-20.png)
11. Approve that the mapping is made and the files are uploaded
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-21.png)
12. Upload the mapping csv and validate the file
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-22.png)
13. First the file will be checked, you will receive a mail when the file is ok
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-23-1024x762.png)
14. If you refresh you will now be able to import the data to office 365 (a new button will appaer)
![](https://tomtechproductions.be/wp-content/uploads/2021/09/image-24-1024x172.png)