r/exchangeserver • u/JdeFalconr • 4h ago
Question How to Create a PST from Emails Without Exporting from Outlook or Purview?
My goal is to export mail objects from Exchange Online mailboxes via Graph API and output them in PST. I need to avoid the use of Outlook and Purview because they don't work in this situation (see below). In particular I need help with the PST creation part; I already know how to export things via Graph. Does anyone know how I go about creating PSTs without them?
The background here is that Microsoft no longer supports the "folderID" search operator in Purview that's required to scope a Purview search by specific mailbox folders. As a result I'm looking to instead use Graph API to perform those functions for export purposes. While I know I can export as individual .EML or .MSG files those are painful to import (especially in large volumes), don't preserve folder structure, are susceptible to file path length limitations, and aren't nearly as portable. For those reasons I want to export in PST. Unfortunately as far as I know Graph doesn't offer that option at all. Outlook is extremely slow and unreliable for exports, especially for large data sets, so that isn't a viable option to create PSTs.