Export Office 365 Mailbox to PST (Step-by-Step-Guide)

Updated

Export Office 365 Mailbox to PST (Step-by-Step-Guide)

Do you need to export an Office 365 Mailbox to a pst file?

No problem.

In this guide, I’ll show you two options for exporting an Office 365 mailbox to pst.

Requirements

  1. You need to have the eDiscovery Manager role assigned to export mailboxes (not assigned by default). Steps for adding these rights are at the end of this article.
  2. Microsoft Edge. Yes, you must use the Edge browser to download the pst file.

Option 1: Export Office 365 Mailbox using Compliance Center

To export a mailbox you first need to create a content search and then download the search results. It’s a lot of steps, and so I have provided screenshots for each one.

You must use the edge browser or you will not be able to complete all the steps.

Step 1. Open Microsoft 365 Compliance Center

https://compliance.microsoft.com

Content search selected in the Microsoft 365 compliance center New search button on the content search page

Step 4. Name and description

Provide a name and description for your content search. This will be used to easily identify your search in a later step. Click “Next” when done.

Name and description fields for the new content search

Step 5. Locations (What to export)

Turn Exchange Mailboxes On, then click “Choose users, groups, or teams”.

Locations page with Exchange mailboxes turned on

Select or search for the mailbox you want to export. When you have selected the mailbox click on done.

Mailbox picker used to select the mailbox to export

Back at the locations page click on “Next”

Step 6. Define your search conditions

You can leave conditions blank to export the entire mailbox. The conditions section is very powerful and allows you to search for emails based on different criteria.

Search conditions page left blank to export the whole mailbox

Click “Next”

Step 7. Review your search settings

Review your search settings and click the submit button at the bottom.

Review page for the content search settings before submitting

Now you will need to wait for the search to complete before you can export it.

You can click refresh and wait for the status to change to “completed”.

Content search status showing the search has completed

Note: When you run a content search you may get an email alert like the one below.

Email alert generated by running a content search

When the content search is complete you can move to the next step.

In the 365 compliance center click on “content search” and then the search you created.

Step 9. Click on “Actions”

Step 10. Select “Export Results”

Export results option under the Actions menu

Step 11. Export Options

  • Select “All items, including ones that have unrecognized format…”
  • Select “One PST file for each mailbox
  • Click “Export”
Export options set to all items and one PST file for each mailbox

Step 12. In content search click on the Export tab

Export tab in content search listing the export job

You will need to wait for the export to complete before you can download it. You can click refresh to update the status. Depending on the office 365 mailbox size the download could take several minutes or hours to be completed.

Export status page with a refresh option while the export runs

When the status has changed to “completed” click on “Download results”

Completed export with the Download results link

You will be prompted to open a file. This will open the eDiscovery Export Tool that is needed to download the pst.

Prompt to open the eDiscovery Export Tool

You will then be prompted for the export key and location to download the file.

The export key is on the export page of your download. Copy the key and paste it into the eDiscovery Export Tool.

Export key shown on the export page ready to copy eDiscovery Export Tool with the export key and download location

Click “start” and the download will begin.

eDiscovery Export Tool downloading the PST file

When the download is done, browse to your download folder to access the pst.

Download folder containing the exported PST file

That is it for option 1.

Option 2: Export Office 365 Mailbox using PowerShell

Unfortunately, only the content search can be done with PowerShell. To download the pst you will need to use the edge browser. If you find a way to download the pst with PowerShell, please leave a comment below.

Step 1: Connect to Compliance Center with PowerShell

The steps will work with PowerShell Core 7 or the older PowerShell 5.1

Use this command to connect to the compliance center. You will be prompted to authenticate, this supports MFA.

Connect-IPPSSession
Connect-IPPSSession running in a PowerShell window

Now run this command to create a content search and start it. Change ‘mysearch’ to name your search and change to the mailbox you want to export.

New-ComplianceSearch 'mysearch' -ExchangeLocation robert@activedirectorypro.com | Start-ComplianceSearch
New-ComplianceSearch command creating and starting a search

If you go to the MS Compliance center you should see your search.

Now follow the steps from step 2 in the first section to download the pst.

PowerShell created search listed in the compliance center

That’s it. I just showed you two methods for exporting an Office 365 mailbox to pst.

How to Check eDiscovery Manager Role

By default, a global administrator does not have all the permissions to export a mailbox to pst.

Here is how you check permissions:

  1. Log in to the Microsoft 365 Admin Center
  2. In the left menu go to Compiance (Under Admin centers)
  3. Click on Permissions
  4. Click on Roles under “Microsoft Purview Solutions”
  5. Select eDiscovery Manager
  6. Edit the eDiscovery Manager
  7. Find your account and add it to the list
eDiscovery Manager role group members in the compliance center

After adding or removing users to a role group it could take several minutes for the change to take effect. Sometimes you will need to log out of the admin center and log back in.

I just showed you two methods for exporting an office 365 mailbox to pst. It’s a lot of steps and Microsoft has made changes to the process over the years, that is typical Microsoft and I’m sure they will continue to change the process.

Reminder, if you find a way to download the pst please let me know by commenting below.

Resources