Export operations can fail for various reasons. Here are the most common issues and their solutions, based on real-world troubleshooting experience.
Issue 1: Permission Denied Errors
If you get "You don't have permission" errors, verify your role assignment:
# Check current role assignments
Get-ManagementRoleAssignment -RoleAssignee $env:USERNAME | Where-Object {$_.Role -like "*Import*"}
# If no results, assign the role again
New-ManagementRoleAssignment –Role "Mailbox Import Export" –User $env:USERNAME
Issue 2: UNC Path Access Denied
Verify the network share permissions and test connectivity:
# Test UNC path access
Test-Path "\\EX01-2016\PST"
# Check share permissions
Get-SmbShareAccess -Name "PST"
# Verify folder permissions
Get-Acl "D:\PST" | Format-List
Issue 3: Export Stuck in Queued Status
Check the Microsoft Exchange Mailbox Replication service:
# Check service status
Get-Service MSExchangeMailboxReplication
# Restart if needed
Restart-Service MSExchangeMailboxReplication
# Check MRS configuration
Get-MailboxServer | Get-MailboxReplicationService
Issue 4: Large Mailbox Export Failures
For mailboxes larger than 50GB, use these parameters:
New-MailboxExportRequest -Mailbox "large.mailbox" -FilePath "\\EX01-2016\PST\large_mailbox.pst" -Priority High -LargeItemLimit 100 -BadItemLimit 50
Issue 5: Exchange Online Limitation
Remember that Exchange Online doesn't support PST exports via PowerShell. For Office 365, use these alternatives:
- Microsoft 365 Security & Compliance Center (Content Search)
- Microsoft Purview eDiscovery
- Third-party migration tools
- Outlook client export (for individual users)
Verification: Test your export setup with a small test mailbox first:
# Create test mailbox
New-Mailbox -Name "TestExport" -UserPrincipalName "testexport@company.com" -Password (ConvertTo-SecureString "TempPass123!" -AsPlainText -Force)
# Test export
New-MailboxExportRequest -Mailbox "TestExport" -FilePath "\\EX01-2016\PST\test_export.pst"
Warning: Never attempt to export directly to local drives (C:\, D:\) from Exchange Management Shell. This will always fail. Always use UNC paths (\\servername\share) for PST exports.