A user left and I need to keep their mailbox as a PST. New-MailboxExportRequest is not in Exchange Online. How do I export?
For Exchange Online use a content search and export in the Microsoft Purview portal:
1. Make sure your account has the eDiscovery Manager and the Export roles.
2. Create a content search for the mailbox and select the mailbox as the location.
3. Start the export and choose PST as the format. The portal gives you a download link and a key.
4. Use the eDiscovery export tool to download the PST files.
If the user mailbox is licensed or on hold, check the retention settings before you remove the account. Another way is to open the mailbox in classic Outlook and use File > Open & Export > Import/Export > Export to a file.
Used the content search export. It worked. Thanks.
Keep the export key safe until you finish the download, because you cannot get the same job again after it expires.
Saved it.