Let us see how to export the contents of a Microsoft 365 (Exchange Online) user’s mailbox to PST file.
How to export Microsoft 365 mailbox to PST using Outlook?
Users can export their mailboxes to PST files themselves using the Outlook client associated with their Microsoft 365 account.
- Open and select your Outlook client file , Open , import Export,
- Click export to file in the action list;
- Choose an export format: Outlook Data File (.pst),
- Then select the folders you want to export from your mailbox to PST file. To export the entire contents of a mailbox, select its root and check include subfolders alternative;
- Specify a path to the local PST file that you want to export your mailbox contents;
- You can also set a password to protect the PST file.
Wait until the mailbox export operation is complete.
Exporting mailboxes to PST with Microsoft 365 Compliance Center
Microsoft 365 (Exchange Online) tenant administrator can export any user mailbox to PST file. Note that you cannot use the New-MailboxExportRequest cmdlet (only available in on-premises Exchange Server) to export mailboxes from Exchange Online. The mailbox export feature is available in the graphic eDiscovery Export Tool ,
First, assign eDiscovery Manager Role of the account you’ll use to export:
- Sign in to the Microsoft 365 Compliance Center (https://compliance.microsoft.com/,
- go for permissionsExpansion compliance centerand choose roles,
- find eDiscovery Manager role;
- add your account eDiscovery Administrator,
In addition, you can view and assign roles using PowerShell. Connect to your Microsoft 365 tenant by using the Exchange Online PowerShell v2 (EXO V2) module:
Connect-ExchangeOnline
Display a list of users with the discovery management role assigned:
Get-ManagementRoleAssignment -Role 'Mailbox Search' -GetEffectiveUsers| where {$_.name -eq "Mailbox Search-Discovery Management"}
To assign a role to a new user, run the command below:
Add-RoleGroupMember 'Discovery Management' -member [email protected]
then make content search Task that will collect the user’s e-mail items.
- Open Microsoft 365 Compliance Center -> Solution -> Content Search -> New Search,
- Enter the name of the task;
- to select exchange mailbox Click More in the Specific Locations section Select User, Group or Team,
- Select the mailboxes you want to export (you can export all mailboxes at once);
- In the next step, you can add additional selection criteria. In our case, we skipped this step.
Wait for the job status to change It’s finished,
Now you can export search results to PST file using this eDiscovery Export Tool. It is available as an extension for the equipment microsoft edge browser (you can use meta 4 clickonce in chrome and breeze clickon in firefox).
- Open the search result and click Actions -> Export Results,
- Select the following export options:
Output Options: All items, including items with an unrecognized format
Export Exchange content as: One PST file for each mailbox - Click export,
- Go to the Export tab in the Content Search and click Export results;
- press Download Result switch;
- Confirm Microsoft Office 365 eDiscovery Export Tool installation;
- Copy the export key from the Compliance Search window;
- Paste the key at the eDiscovery Export Tool prompt and specify a path to the local directory in which you want to save the PST files. Click on Start;
- Wait for the utility to download the PST files from Microsoft 365.
Note that the maximum size of PST files created by the eDiscovery Export Tool is 10 GB by default. If the mailbox size is more than 10 GB, you will get multiple PST files. As you know, it is not recommended to make PST files too large. This increases the risk of damage.
You can increase or decrease the size of PST files generated by eDiscovery Export Tool through Registry.
The following REG file will reduce the maximum size of the exported PST file to 8 GB:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\Client\eDiscovery\ExportTool] "PstSizeLimitInBytes"="8589934592"
Restart the eDiscovery Export Tool to apply the new settings.
Export Exchange Online Mailbox to PST with PowerShell
You can create a Search and Export job using PowerShell. Connect to the M365 Security and Compliance Center:
Connect-IPPSSession
Create a search task:
New-ComplianceSearch -Name "2022-22-11_export_pst" -ExchangeLocation [email protected] | Start-ComplianceSearch
To export the data you’ve found:
New-ComplianceSearchAction 2022-22-11_export_pst -Export -Format Fxstream
Wait for the task to change to Completed status:
Get-ComplianceSearchAction|where {$_.name -eq "2022-22-11_export_pst"}
To get the URL where you can download the PST file (container url) and an access key (sas token), run the command below:
Get-ComplianceSearchAction -IncludeCredential | where {$_.name -eq "2022-22-11_export_pst"}|fl
Leave a Comment