How to Export an Office 365 Mailbox to PST – [Step-by-Step]

In some use-cases, you might want to export Office 365 mailboxes to a PST file. For example when a user leaves the organization, legal purposes, or when you want to migrate a mailbox to another mail service.

Users can export their own mailbox through the Outlook client, but also as an admin we can easily export a complete mailbox through the Office 365 Admin Center.

In this article, I am going to explain how you can export an Office 365 mailbox to pst.

Requirements to Export Mailbox to PST in Office 365

We are going to use the Content Search and eDiscovery Export Tool to export an Office 365 mailbox to PST. To use the Content Search you will need to have the eDiscovery Manager role in the Microsoft 365 Compliance center.

A global administrator doesn’t have this role by default, so first, we are going to give your account the proper permissions. You will need to be a global administrator to change permissions.

  1. Log in at the Microsoft 365 Admin Center
  2. In the menu, click on Compliance to open the Compliance Admin Center.
  3. Click on Roles & Scopes > Permissions
  4. Open the Microsoft Purview Roles
  1. Select eDiscovery Manager
  2. Make sure that the Export Role is listed in the Assigned Roles (otherwise, add it)
  3. Edit the eDiscovery Administrator
office 365 export mailbox to pst
  1. Click on Choose eDisovery Administrator or Edit
  2. Click + Add
  3. Lookup your own account and add it to the list
  4. Click Save to complete
exchange online export mailbox to pst

We have now the proper permissions to start a Content Search and export an Office 365 mailbox to pst. To apply the new permissions it’s best to log out, close the tab, and log back in again.

Office 365 Export Mailbox to PST

To export a mailbox out of Office 365 we first need to create a Content Search that will collect all the mail of the specified user. Then we can export the result to a PST file with the eDiscovery Export Tool.

Note

Only the browser Edge is supported to download the eDiscovery Export Tool.

Their are browser extensions available for Chrome and Firefox that solve this issue and allows you to download and use the eDiscovery Export Tool

Chome : Meta4 ClickOnce
Firefox : Breez ClickOnce

  1. Open the Microsoft 365 Compliance Center


    Open https://compliance.microsoft.com/

  2. Create a new Content Search


    – Select Content Search in the menu under Solutions
    – Click + New Search

    New Content Search

  3. Enter a name and description


    Give your content search a recognizable name and description and click Next. This helps you later with identifying the correct content search.

    Export Mailbox Office 365

  4. Select Exchange Mailboxes


    To export a mailbox, turn Exchange Mailboxes on and click on Choose users, groups, or Teams

    Export mailbox office 365 to pst

  5. Select the mailbox to Export


    The next step is to select the mailbox that we want to export. Select or search for the correct user and click on Done

    And click on Next to continue to the Conditions.

    Select user in Content Search

  6. Leave Conditions empty


    We want to export the complete mailbox, so we can leave the conditions empty.
    Just click Next

    Content Search Conditions

  7. Complete the Content Search


    Review your Content Search and click Submit to start it.
    Click Done to close the New Search screen

    Review content search for export

  8. Wait for the search to complete


    Depending on the mailbox size it can take a couple of minutes to complete the content search. Wait for the status to change to Completed in the Content Search scene. (Click Refresh occasionally to update the status)

    content search completed

  9. Export the Office 365 Mailbox to PST


    1. Click on the Content Search that we have just created
    2. Select Actions
    3. Choose Export results

    Export results to pst

  10. Export Options

    We can now select what and how we want to export our mailbox.
    – Output Options: All items, including ones that have unrecognized format…
    – Export Exchange Content as One PST file for each Mailbox.

    Click Export to start the export

    Export Microsoft 365 mailbox to pst

  11. Download the Office 365 export mailbox PST file


    Again, it can take a couple of minutes for the download file to get ready.

    – Open the Export tab in the content search screen
    – Select the Export job to view the status

    It can take a couple of minutes depending on the mailbox size. You can click on refresh to update the status, and wait for it to be completed.

    Export job completed

  12. Download eDiscovery Export Tool


    To download the PST files we will need to use the eDiscovery Export Tool.
    As mentioned earlier in the blue note, you will need to use Edge for this step or use a ClickOnce browser extension in Chrome or Firefox.

    Click Download Results to download the tool

    Download PST from Office 365

  13. Approve the download


    A new tab will open that will download the eDiscovery Tool. Click Open in the security warning

    Open eDiscovery Tool

  14. Copy the Export Key


    Before you can start the download, you will need to copy the export key from the Compliance Center.

    export key

  15. Download the PST File


    The last step is to start the download in the eDiscovery Export Tool.

    1. Paste the key that we copied
    2. Enter a location for the PST file
    3. Expand Advanced Options and give the PST file a meaningful name

    And click on Start

    Start Download of PST file

  16. Wait for the download to finish

    Depending on the size of the mailbox, the download can take some time. Wait for it to
    finish and open the PST file in the location that you specified.

    Download progress o365 pst file

You can also use these steps to download multiple mailboxes at once. Just select multiple users or mailboxes at step 5 and makes sure that you select one pst file for each mailbox in step 10.

Office 365 Export PST File Size Limit

The default file size of the exported PST files is 10 GB. You can increase or decrease the file size, but keep in mind that if you make it too large, to chance of file corruption increases as well. If the exported mailbox is larger than the PST limit, then the tool will split the PST file into sequentially-numbered files.

Making the file size smaller can be useful if you need to place the files on removable media.

To change the file size you will need to create a registry key.

  1. Close the eDiscovery Export Tool
  2. Create a new txt file and name it pstsize.reg (note the extension)
  3. Add the following content
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\Client\eDiscovery\ExportTool]
"PstSizeLimitInBytes"="21474836480"
  1. Change the PstSizeLimitInBytes to the desired value:
Size in bytesSize in GB
42949672964 GB
85899345928 GB
2147483648020 GB
3221225472030 GB
  1. Save the file and close it.
  2. Double-click the newly created reg file to import it. Click yes twice to the warnings.

You can remove the registry key to change the value back to 10 GB or change the value of the key to 10737418240.

Restart the eDiscovery tool to export the PST files in the new size.

Export or Backup Office Outlook contacts

When users leave the organization they sometimes want to take their Outlook contacts with them. Even though you can easily export them through Outlook, you could also use the Content Search method to export only the contacts.

Follow all the steps described earlier, but add a condition in Step 6:

  1. Click Add Condition
  2. Select Type
  3. Click Add/Remove more options
  4. Select Contacts

Follow all the other steps to export the Outlook contact to a PST file.

Use a third-party tool to Export Mailbox to PST

There are also third-party tools available to export Office 365 mailboxes to PST files. For example, Kernel Export Office 365 to PST Tool (10% discount with code “lazyadmin”), SysTools Backup and Restore Office 365 (25% discount with code “LAZYAD25OFF“), or Stellar Exporter for Office 365. Now I am not going to do a full review of these tools, but what is great about these kinds of tools is that they give you more control and feedback about the export.

For a single mailbox is this overkill, if you have to export multiple mailboxes, or do this on a more regular basis, then this tool is a real-time-saver. It makes exporting Office 365 mailboxes to PST a lot easier.

Using PowerShell

One of the readers of this blog, Simon, has written a PowerShell script that allows you to export multiple mailboxes easily. It uses a CSV file as a list with mailboxes to export.

I haven’t tested the script, but you can find the script here in my GitHub repository.

Wrapping Up

I hope this article helped you with your Office 365 Export mailbox to PST. Keep in mind that the content search method can take some time. If you need to export multiple mailboxes to PST then using a third-party tool might be a better idea.

They are more convenient to use and don’t cost really that much.

If you have any questions, just drop a comment below.

58 thoughts on “How to Export an Office 365 Mailbox to PST – [Step-by-Step]”

  1. This is great; thank you. I started downloading and then thought, does it also download the contacts? And what about the calendar? I’m looking forward to your reply. Thank you.

  2. Hi Rudy.
    Excellent article.
    What about exporting softdeleted archive?
    A mailbox have been deleted, but another one have been created, but impossible to restore old archive data to new Archive, because autoExpandingarchive was enabled.
    Do you have a solution, please?

  3. Good day. The first steps are no longer correct due to MS Admin Portal changes. It is now under Roles & Scopes > Permissions.

  4. Outstanding how-to article! Clear, concise and well written. Thank-you, thank-you, thank-you!!

    With your permission, I would like to incorporate much of this into one of our internal procedure documents.

  5. Do you have instructions on importing a PST to an office 365 account? Importing in Outlook is so easy, but I cant find a way to to import on Office 365 without downloading additional software or having deep tech knowledge.

  6. THANK YOU! Brilliant. I was searching for hours trying to find out how to do this, and (finally) your excellent step-by-step guide with screenshots covered it very clearly and comprehensively.

    It worked – bravo!

    • A folder can’t be hidden in Outlook. You can only remove permissions from it But that only makes sense when you have shared your inbox folder.

  7. Hi, thanks for the beautifully outlining the whole process. I just have a question if you don’t mind answering it. Does it also contain the emails deleted by user from deleted items.

  8. Thank you for this guide.

    – I see a other screen for step 7.
    – I see a other screen for step 11.
    – I get a pop-up window telling me that a job is made after clicking on export in step 10.

    Also Microsoft is calling the compliance system now Microsoft Purview in the upper left corner.

    • I’m sorry I missed the instruction for step 11 to open the Export tab. So the screenshot for 11 is the same as on my screen.

    • I have updated most screenshots. It’s indeed renamed to Purview. Only I don’t see any difference in Steps 7 and 11. Can you email a screenshot of what you get at those steps? I am curious about what the differences are.

  9. Excellent article and just what I was looking for. Followed your steps and it worked perfectly. Thank you much!

    One suggestion – maybe a note under the File Size Limit that if a pst file to be exported is larger than the desired file size limit, the tool will split the pst file into sequentially-numbered files.

    Thanks again.

  10. Ótimo artigo, nos auxiliou demais. Porém quando tentamos efetuar o passo-a-passo 10. Opções de exportação, ocorre um erro 500 e não dar andamento ao processo 11.

    Poderia nos auxiliar mais uma vez?

  11. I’d love to know how to import exported PST into a mailbox at another 365 domain. When I try to do it manually through Outlook, it doesn’t maintain the correct inbox/subfolder structure.

    • That is strange. And if you just open the PST in Outlook, does it then show the correct structure? You could then maybe move the folders from the PST to the inbox.

  12. Really appreciate this article since every other articles still has the old eDiscovery archiving in place. Thank you for the thorough instruction.

  13. How long is the export available?

    Love your posts. A great help to all the incompetentadmins (as opposed to lazy). 🙂

  14. Once you have successfully downloaded the export, will the user’s data that you exported stay within the 0365 admin center when you remove the user from the organization?

    Thanks!

    • That depends on your retention policies. Export is only a copy of the data. If you delete the user, by default the mailbox will also be deleted. I thought after 30 days, but not sure about that (need to check).
      But the export will remain available ofcourse.

  15. This article is great. I’d only add that step 13 in the process needs to be performed with MS Edge or it fails.

    I am trying my first 365 eDiscovery export . Before the cloud, I’d export straight from the Exchange server. After moving to the cloud, I’d connect the account to an Outlook and export from there.

    My first export from 365 is going smoothly, but it’s taking over a day!! When the process started it said that the estimated time was 2 days and some, then it started going down, I didn’t take it very seriously, but I guess I should have. I started the process about 18 hours ago and it’s still running, and it says that the estimated remaining time is 1 day and 17 hours.

    What’s going on??

    Thank you!

    • Yeah, step 13 is best performed in Edge. But Firefox with the ClickOnce extension also seems to work fine.

      About the speed, how large is the mailbox, and what is the download speed of your connection?

  16. Yeah, getting that tool working was a pain since it kept wanting to use IE and I wasted time trying to get it to go. Finally got it working with FireFox after installing the clickonce extension.

    When the download was done for the single mailbox I had chosen, I had 4 PST files, numbered sequentially.

    I had selected one PST for each mailbox, so I’m curious why. This mailbox is over 36GB and each PST seemed to be limited to ~10GB, so I had three equal size PSTs and the fourth one was 6GB.

    Is there an export file limit size?

    • Yes, the default file size limit is 10 GB. You can increase it, I have just updated the article with the information to increase the PST file size. But don’t make it too large, because you risk corrupt PST files.

      And thanks for the ClickOnce tip, I have added it to the article.

  17. Sorry i made a typo, I tried to say that not all browsers can be used for the Export tool. Edge works for me, Firefox not. I thought Chrome was not supported either buy I am probably wrong on that one.

    • A yes, that is correct. Chrome is officially not supported, but it working perfectly. Think after Edge switches to the same engine. But good point, I will add it to the article.

    • Which version of Edge are you using? I use Edge to create the screenshots and test everything, and it’s working perfectly fine here. I am using version 96.0.1054 (Help and feedback > About). Maybe a security setting in Edge that is preventing you from downloading the tool?

      Also in Chrome am I able to download the tool.

Leave a Comment

0 Shares
Tweet
Pin
Share
Share