How to export your Microsoft 365 mail and files

Export Outlook mail, SharePoint and OneDrive with Microsoft Purview eDiscovery: roles, licences, steps, the 14-day download window, and what the removal tool strips.

  • Updated2026-10-06
  • 6 min read
On this page
  1. Who runs it and how long it takes
  2. Licences to check first
  3. The steps
  4. What you get
  5. Review the cleaned package on your computer before you upload
  6. If the export goes wrong
  7. What the removal tool strips, and what stays out
  8. Why we never connect to Microsoft 365

Whoever administers Microsoft 365 for you exports mail, SharePoint and OneDrive with Microsoft Purview eDiscovery. They create a case, search the mailboxes and sites we agreed, and export. Mail comes out as PST files and documents as native files in ZIPs, and the packages expire 14 days after Microsoft makes them; after that Microsoft says they can't be recovered. Microsoft retired the classic Content Search and the eDiscovery Export tool on 31 August 2025, so use the Purview portal. You, or whoever runs your systems, run the removal tool on your own computer and review flagged items there. You upload only the cleaned package. The app refuses a raw export. We never connect to Microsoft 365.

Who runs it and how long it takes

An admin in the eDiscovery Manager role group, added to the case. Someone with Organization Management or Role Management assigns that role first, and in many firms your IT provider holds those rights. Our estimate is 30 to 60 minutes to set up and start, then 20 to 60 to download and check. Microsoft gives no processing time, and it cancels any export still running after seven days. Large firms split the job by date or mailbox.

A manager sees only the cases they create, so the person who runs the export creates the case themselves. Microsoft also says the admin account's Conditional Access policies in Entra can restrict some operations. Before the first search, check under Enterprise Applications in the Azure portal that the enterprise apps Built-in security add-on, ComplianceWorkbenchApp, MicrosoftPurviewEDiscovery and Office365Zoom have "Enabled for users to sign-in" set to Yes.

Before you start, read How to export your QuickBooks Online data and How to export your Salesforce data.

Help · Get your estimate

Licences to check first

Microsoft's general guide asks for Microsoft 365 E3 or E5 for the person running it. Without SharePoint E3 on that account, Microsoft says SharePoint exports "might not export as expected". Microsoft's documentation neither includes nor excludes Business Premium for mail and file export; its Copilot page says Business Premium can use eDiscovery (Standard) to search Copilot interactions and export the results. On Business Premium? Tell us, and we'll check what your tenant can export before anyone starts.

The steps

  1. Put whoever's running it in the eDiscovery Manager role group.
  2. In the Microsoft Purview portal, go to eDiscovery, then Cases, and create a case for this deal.
  3. Open Searches, create one, and add the mailboxes, SharePoint sites and OneDrive accounts we agreed, with the date range.
  4. Run it and check the statistics. Send us the counts if you like. They sharpen the estimate.
  5. Select the search and choose Export. Set Export type to "Export items with items report" and choose "Create PSTs for messages" (or .msg). OneDrive and SharePoint items export as native files; there is no separate native setting. Teams messages are an option ("Include messages posted within a 12-hour window before and after each responsive item"), not automatic.
  6. Download every package from Process manager within 14 days. To avoid a path-too-long error on Windows, tick the export option "Condense paths to fit within 256 characters". If Windows still reports the error, its message says you can shorten the file name and try again.
  7. Keep the packages as Microsoft made them, with the dates and locations they cover, for the removal tool.

What you get

Mail arrives as PST files (or single MSG files) in packages of 1, 2, 5 or 10 GB. SharePoint and OneDrive files arrive as native copies in ZIPs of 2, 10, 20 or 40 GB, with export reports. Teams messages are an export option, and the Teams guide covers them.

The process report includes an items.csv with each item's original source location. Microsoft says the export keeps the folder structure only when you select "Include folder and path of the source". Without that option, mail lands at the root of the PST.

Microsoft's export does not return everything. Its documentation lists files restricted by data loss prevention policies, locked SharePoint sites, access-control restrictions, unlicensed and guest users, partially indexed items, cloud attachments and earlier document versions as items that can be missing or limited, so check the export report against what you expect.

Review the cleaned package on your computer before you upload

Your export stays on your computer. Check that it is complete, then run the removal tool and review the cleaned package there before you upload anything.

  1. Before you export, run the search and write down the item and location counts on the Statistics tab.
  2. After the export finishes, open the items.csv in the process report. Microsoft says to use it to see each item's original source location and other metadata. Compare its row count with the Statistics tab and note any gap.
  3. Write down the search name, the date range, every mailbox, site and OneDrive account the search covered, and the export options you chose. For SharePoint documents, Microsoft offers Latest version only, Recent 10 versions, Recent 100 versions and All versions, so note which one you picked.
  4. Read Microsoft's list of what an export leaves out against your gap. Microsoft says files restricted by a data loss prevention action "can appear in search statistics results but are excluded from the export". Cloud attachments are a separate option, Access links (cloud attachments) in messages, and Microsoft says including them increases the size and quantity of your exported results.
  5. Open one PST and one document ZIP on a test machine and find a message and a document you know should be there. Write down anything missing and send that list with the cleaned package.

If the export goes wrong

  • The package expired. Microsoft deletes an export and its data after 14 days and says it can't be recovered. Create the export again from the same search and download it within 14 days.
  • Windows says the file name is too long. Microsoft's message is "The file name(s) would be too long for the destination folder". Re-run the export with the condense-paths option from step 6, or unzip with 7-Zip or WinZip. Microsoft says to avoid the built-in Windows zip utility.
  • The download stalls or does not start. Microsoft asks you to use the latest Microsoft Edge, allow pop-ups from Microsoft Purview and set Automatic Downloads to Allow for the Purview site. For exports of tens of gigabytes, split the search by date range or data source, because smaller packages are less likely to stall.
  • The download links. Microsoft says the export package links are for individual use only and must not be shared. To pass data to someone else, run our removal tool on your own computer and upload only the cleaned package.
  • SharePoint items are missing. Check the SharePoint E3 license on the exporting account, data loss prevention restrictions, locked sites and SharePoint access rights, then compare with the items report.

What the removal tool strips, and what stays out

The removal tool turns names and email addresses of staff, clients and contacts into consistent labels, so threads still read. It strips phone numbers, signatures, addresses and ID numbers, and client company names too, in subjects, bodies and file names.

HR, legal, benefits and health mailboxes and sites stay out, plus any personal mailbox you name. Client deliverables stay out unless the client agrees in writing. The tool finds passwords and keys and drops them. You review the tool's flagged items on your own computer and a cleaned sample before any buyer sees it (how personal data is removed).

Why we never connect to Microsoft 365

Microsoft's API terms say developers' applications may not "Redistribute or resell, or sublicense access to, the Microsoft APIs, any data obtained using the Microsoft APIs". Those terms cover apps that call Microsoft APIs. Purview is Microsoft's own export, run by the tenant administrator inside your tenant, and we ask for files so that no app connects to your tenant (why we ask for an export).

Questions about selling company data

Which Microsoft 365 tool exports mail and files for the whole firm?
Microsoft Purview eDiscovery. An admin with the eDiscovery Manager role creates a case, searches the mailboxes, SharePoint sites and OneDrive accounts we agreed, and exports the results as PST mail and native files.
Does Business Premium include the eDiscovery export?
Microsoft's general eDiscovery export guide asks for Microsoft 365 E3 or E5, and SharePoint exports need SharePoint E3 on the exporting account. Microsoft's documentation neither includes nor excludes Business Premium for mail and file export, so check your licences with us before you start.
How long do we have to download a Purview export?
Microsoft says export packages expire 14 days after they are created, and an export still running after seven days is cancelled. Split large exports by date or by mailbox.