1. In the Office 365 Admin center after logging in to your Office 365 portal, access the Security & Compliance Center as shown in the below image.Accessing Office 365 Admin Center
  2. In your Office 365 admin center, expand Admin centers and click Security & Compliance.
     Access Office 365 Security & Compliance Center
  3. In your Security & Compliance center, go to Permissions and edit eDiscovery Manager role group.
     This and the next step are necessary because you need to be a member of the eDiscovery Manager role group to be able to use eDiscovery features.
     Set Permissions to Export Mailboxes to Office 365
  4. In the eDiscovery Manager role group properties window, add your account to the eDiscovery Administrator list using the plus button and click Save.

    The role group normally has the following roles assigned: Case Management, Compliance Search, Export, Hold, Preview, Review and RMS Decrypt. In some cases, the Export role is missing. If that is the case, make sure you add it using the plus button.

    Setting Permissions to eDiscovery Management

  5. Now go to Search & investigation, click the plus button to start a new Content Search  wizard, type in a name and click Next.
     Create New Content Search in Office 365 eDiscoveryImportant note: If you are missing the + button, it is most likely related to the eDiscovery permissions you set in the previous steps. Changes in the eDiscovery permissions might take even up to 24 hours to apply. 24 hours after you set the permissions (or less, in my case it was around an hour) the tool should work just fine. The issue with permissions might also result in the lack of the download button in step 9.
  6. If you want to export data from all mailboxes, select Search everywhere and tick Exchange.

    Or select specific mailboxes using the Custom location selection option, and then clicking the plus button. This will open a new window – highlight the mailboxes and/or SharePoint sites you want to export data from, click add -> and OK.

    Additionally, you can enable exporting from Public folders by checking the Search all public folders option (in the Public folders section at the bottom of the window)

    Choose Office 365 mailboxes to export to PST

  7. The next step gives you several filtering options (unless you want to export all data, in which case do not change anything):
    • keywords/phrases (separated by logical operators: AND, OR, NEAR, NOT, etc.)
    • time ranges
    • From/To/CC/BCC fields
    • and message types (which can be defined in the window that opens when you click the select message types… button).
  8. eDiscovery Search - Specify keywords and conditions

  9. After clicking Search, the wizard will perform the search in the background. When it finishes click Start export.
     Export Office 365 Mailboxes to PST files
  10. In the window that pops up, you can choose if you want to include encrypted files. You can also decide how to export the Exchange content. I find the default options to be the most reasonable for a backup – each mailbox has a separate PST file, which makes recovery a bit easier if necessary. When you are finished, click Start export on the bottom of the window.How to Export Office 365 Mailboxes to PST
  11. The wizard starts to export data. You can either wait for it to finish, or click Download exported results right away. If you start to download the results before the export is completed, the download and export tools should finish at the same time.Download exported results
  12. In this window, a special export key is generated. Remember to copy it, as it will be required in the ClickOnce application that will start in the next step.Copy the export key to clipboard
  13.  A ClickOnce application called eDiscovery PST export tool will start. Paste the export key copied in the previous step. Next, point it the Export tool to a folder where you want to save the PST files.
     Paste the export key and point to the download location
     Do not check the Enable deduplication option, unless you want the search results to be exported to a single PST file.For more on unsearchable items see this TechNet article.

After you click Start, the tool will begin the export. When it completes, close the application.