Skip to content

Export Microsoft 365 mailbox to PST file

You need to export the Microsoft 365 mailbox and create a PST file to save the old email data. The best way to do this migration is to use the Microsoft Purview compliance portal and export the Microsoft 365 mailbox to PST. We will use the free Microsoft eDiscovery tool when exporting Microsoft 365 mailboxes to PST files. This article will teach you to export Microsoft 365 mailbox to a PST file.

Export PST file from Microsoft 365 using eDiscovery

Export Microsoft 365 mailbox to a PST file by following the below steps.

1. Assign eDiscovery Administrator role group

The administrator has the Global admin role in the organization. But they don’t have the permission to export the mailboxes. To get access, you need to check if the permissions are set. Otherwise, we need to add them to the role group eDiscovery Manager.

Set the permissions in the compliance portal:

Permissions and Roles eDiscovery Manager
  • Click on eDiscovery Manager from the list
Role groups for Microsoft Purview
  • Check if There’s no assigned member
  • Click Edit
Microsoft Purview eDiscovery Manager

It will ask which eDiscovery Manager you want to include, but we don’t need to choose any users.

Note: An eDiscovery Manager can only view and edit cases to limited cases. An eDiscovery Administrator can view and edit all cases regardless of permissions.

  • Click Next
Choose eDiscovery Manager member

Next, we will add the administrator account for the eDiscovery Administrator role group.

  • Click Choose users
Choose eDiscovery Administrator manager and role permissions
  • Find and select the administrator account from the list
  • Click Select
Choose Admin user as eDiscovery Administrator in Microsoft Purview
  • Click Next
Choose Admin user as eDiscovery Administrator in Microsoft Purview
  • Check if there are Roles in the role group eDiscovery Manager
  • Check you assigned the administrator account to eDiscovery Administrator.
  • Click Save
Assign the administrator account to eDiscovery Administrator

You successfully updated the role group.

Ssuccessfully updated the role group in Microsoft Purview

Note: Once you save, the changes can take up to 24 hours to apply. Most of the time, it will work within 1 hour.

In this step, we will search for the exchange mailbox.

  • Go back to Microsoft Purview
  • Click on Content search
  • Click Search > New search
Export Microsoft 365 mailbox to PST content search
  • Add the mailbox Name (e.g. Amanda Hansen mailbox)
  • Click Next
Add new content search Exchange mailbox
  • Turn the switch On for Exchange mailboxes
  • Click on Choose users, groups, or teams
Choose users in new content search Microsoft Purview
  • Search for the Exchange mailbox if needed
  • Select the mailbox
  • Click Done
Select exchange mailbox in new content search Microsoft Purview
  • Click Next
Select exchange mailbox in new content search Microsoft Purview
  • Click Next again
New content search conditions Microsoft Purview
  • Click Submit
Submit content search Microsoft Purview

New search created.

  • Click Done
New search created in Microsoft Purview

In the next step, we will import the PST file.

3. Export Microsoft 365 mailbox to PST file

In the Content search list, you will see the name you created in the previous step.

  • Click on the name
Export Microsoft 365 mailbox to PST content search created

You will see that the Status search is completed.

Export Microsoft 365 mailbox to PST search completed
  • Click on Actions
  • Click Export results
Export Microsoft 365 mailbox to PST

Select the output options that you like to have.

  • Select All items, excluding ones that have unrecognized format, are encrypted, or weren’t indexed for other reasons
  • Select One PST file for each mailbox
  • Click Export
Export Microsoft 365 mailbox to PST

A job has been created.

  • Click OK
A job has been created in Microsoft Purview

4. Download Microsoft 365 mailbox PST file

The last step is to download the Microsoft 365 PST file.

  • Click on the Export tab
  • Click on the name of the export job
Export Microsoft 365 mailbox to PST
  • Click Copy to clipboard
  • Then click Download results
Export Microsoft 365 mailbox to PST

The application can’t start if you are not using a Microsoft browser, and you will see the below warning.

Warning: You must use Microsoft Edge or Internet Explorer to download search results or reports. Please switch to one of these browsers to download the content.

Install Microsoft Office 365 eDiscovery Export Tool

If the tool still doesn’t start, read the Microsoft documentation You can’t start the eDiscovery PST Export Tool.

  • Install the Microsoft Office 365 eDiscovery Export Tool

eDiscovery Export Tool opens.

  • Paste the export key that you copied in the previous step
  • Browse and select a location path for the PST file
  • Click Start
eDiscovery Export Tool

Wait until the status shows The download completed successfully.

  • Click Close
eDiscovery Export Tool download completed successfully

Find the PST file in the location path you selected. In our case, it is C:\PST. Open the Exchange folder, and you will find the .pst file.

Export Microsoft 365 mailbox to PST in folder

Change PST file size export limit

The default PST file size export limit is 10 GB when you use the eDiscovery Export Tool. So, if you export a PST larger than 10 GB, the tool will split the PST file into sequentially numbered files. So if your file is 25 GB, it will split the PST file into 3 files, where the first 2 files are 10 GB and the last 5 GB.

Note: If you export a PST file larger than the desired maximum file size limit, the eDiscovery Export Tool will split the PST file into sequentially numbered files.

You can change the default 10 GB PST file export size.

See the String value for the desired maximum file size limit to export a PST file. The below table shows all the sample values you can use.

Size in GBSize in bytes
1 GB1073741824
2 GB2147483648
5 GB5368709120
10 GB10737418240
15 GB16106127360
20 GB21474836480

Follow the steps on the computer where you run the eDsicovery Export Tool to export PSTs.

1. Close the eDiscovery Export tool

2. Run the app Registry Editor as administrator

3. Create the following registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\Client\eDiscovery\ExportTool

4. Right-click in the folder to create a new String value of 20 GB for the PST export file size limit

PstSizeLimitInBytes=21474836480

Or use PowerShell to create it for you.

# Registry path
$registryPath = "HKLM:\SOFTWARE\Microsoft\Exchange\Client\eDiscovery\ExportTool"

# Name and value of the new string entry
$valueName = "PstSizeLimitInBytes"
$valueData = "21474836480"

# Create the registry key if it doesn't exist
if (-not (Test-Path $registryPath)) {
    New-Item -Path $registryPath -Force
}

# Set the registry value
New-ItemProperty -Path $registryPath -Name $valueName -Value $valueData -PropertyType String -Force

This is the final result in Registry Editor.

Registry Editor PstSizeLimitInBytes string

You did successfully export a Microsoft 365 mailbox to a PST file.

Read more: Manage user mailbox with PowerShell »

Conclusion

You learned how to export Microsoft 365 mailbox to a PST file. First, assign the administrator account to the eDiscovery Administrator role group. Next, create a new content search to export Microsoft 365 mailbox results. As last, download the PST file to your computer with the eDiscovery Export Tool. Remember, that the default PST export file size is 10 GB, but you can always change the size limit in Registry Editor.

Did you enjoy this article? You may also like to Reset MFA for Microsoft 365 user. Don’t forget to follow us and share this article.

o365info Team

o365info Team

This article was written by our team of experienced IT architects, consultants, and engineers.

This Post Has 2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *