⚡ 2026 Modernization Brief — Exporting M365 Mailboxes to PST
- Legacy Portals & ClickOnce Retired: The old
protection.office.comportal and Internet Explorer ClickOnce eDiscovery Export Tool are retired. All PST exports now run inside the modern Microsoft Purview Portal (purview.microsoft.com) with direct browser/AzCopy downloads. - Required Role: Even a Global Administrator cannot export PSTs by default—you must assign the eDiscovery Manager or eDiscovery Administrator role in Microsoft Purview.
- Automation Ready: Use
Connect-IPPSSessionwithNew-ComplianceSearchandNew-ComplianceSearchAction -Exportto script repeatable PST exports for offboarded or legal-hold mailboxes.
Exporting a Microsoft 365 / Exchange Online mailbox to a .pst file is a staple task for employee offboarding, legal discovery, and tenant migrations. While older guides referenced protection.office.com and the deprecated ClickOnce download client, Microsoft Purview eDiscovery (purview.microsoft.com) is now the unified platform for all Content Search and PST export workflows.
1. Modern Microsoft Purview PST Export Workflow
2. Step 1: Grant Required Purview eDiscovery Permissions
If you see "Export button missing" or "Access Denied", your account is missing Purview RBAC permissions:
- Open Microsoft Purview (
purview.microsoft.com) → Settings → Roles and scopes → Role groups. - Open eDiscovery Manager and add your admin account under eDiscovery Administrator (allows viewing/exporting all cases) or eDiscovery Manager (own cases only).
- Allow 15–60 minutes for RBAC propagation before starting the export.
3. Step 2: Export a Mailbox to PST via Microsoft Purview Portal (GUI)
- Go to
https://purview.microsoft.com→ Solutions → eDiscovery → Content search (or create a dedicated eDiscovery Case for legal holds). - Click Create a search, enter a name (e.g.,
Offboard-AlexRivera-PST-2026), and select Data sources → Exchange mailboxes targeting the specific user (active or inactive mailbox). - Leave the KQL query blank to export the entire mailbox, or filter by date/subject (e.g.,
received>=2025-01-01 AND received<=2026-11-23). - Once the search completes, click Export → choose One PST file for each mailbox (Exchange automatically splits PST files at 10 GB to prevent corruption).
- Open the Exports tab and click Download directly in Edge or Chrome—no Internet Explorer or ClickOnce plugin required.
4. Step 3: Automate Content Search & PST Export via PowerShell
Connect to Security & Compliance PowerShell (ExchangeOnlineManagement v3+):
POWERSHELL
Connect-IPPSSession -UserPrincipalName admin@lab365.in
$searchName = "PST-Export-AlexRivera-$(Get-Date -Format 'yyyyMMdd')"
$targetMailbox = "[email protected]"
# 1. Create and start the Compliance Search
New-ComplianceSearch -Name $searchName -ExchangeLocation $targetMailbox
Start-ComplianceSearch -Identity $searchName
# 2. Poll until the search completes
do {
Start-Sleep -Seconds 15
$status = Get-ComplianceSearch -Identity $searchName
Write-Host "Search Status: $($status.Status) | Items: $($status.Items) | Size: $($status.Size)" -ForegroundColor Cyan
} while ($status.Status -ne "Completed")
# 3. Trigger the PST Export Action (download from Purview Portal -> Exports)
New-ComplianceSearchAction -SearchName $searchName -Export -Format FxStream -ExchangeArchiveFormat PerUserPst -EnableDedupe $false
Write-Host "[+] Export queued! Monitor & download from https://purview.microsoft.com -> eDiscovery -> Exports." -ForegroundColor Green
Alternative to PST Exports for Departed Users: If you only need to retain a former employee's email for compliance (without local PST sprawl), consider converting the account to an Inactive Mailbox in Exchange Online via a Purview Retention Policy instead of storing unencrypted .pst files on network shares.
💬 Reader Comments & Feedback
Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.
Leave a Comment or Report an Update