New-MailboxExportRequest does not exist in Exchange Online. How do I export to PST?
Resolved Email & Outlook
RF
Ravi Foster
November 16, 2026
5 replies
130 views
Reviewed by moderators
3 participants

Our on premises Exchange used New-MailboxExportRequest to make PST files. After moving to Microsoft 365 the cmdlet is not there. How do I export mailboxes to PST now?

Accepted answer
Marked as the solution to this question

Right, New-MailboxExportRequest is an on premises Exchange cmdlet. It is not available in Exchange Online. There are a few supported ways to get a PST from a Microsoft 365 mailbox:

1. For one user, in classic Outlook use File > Open & Export > Import/Export > Export to a file > Outlook Data File.
2. For an admin export, use the Microsoft Purview portal. Create an eDiscovery case, add the mailbox as a data source, start a search and export the results. Exports for email are provided as PST.
3. If you need a recurring copy, use a backup solution rather than PST files.

The Purview export needs eDiscovery permissions, for example the eDiscovery Manager role.

Purview export worked. It gave me a download tool and the files arrive as PST. Thanks.

Good. One thing to know. The export tool downloads the content to your computer, so make sure the disk has enough space for the full result set before you start.

How long does the export stay available in Purview?

Export jobs in Purview are kept for a limited time, so download the data soon after the job completes. If the job expires, create the export again from the same search. Keep the download folder on a drive with free space and do not rename the files while the tool is still working.