Exchange save/export mailbox to pst file

New-MailboxExportRequest -Mailbox “alice.cooper” -IncludeFolders “#Contacts#” -FilePath  \\server_name\temp\alice_cooper.pst -ExcludeDumpster   (exports only Contacts folder )

New-MailboxExportRequest -Mailbox alice.cooper -FilePath  \\server_name\temp\alice_c.pst  (export user’s mailbox)

Get-MailboxExportRequestStatistics -Identity: alice.cooper\MailboxExport  – to see the export status

# Export all e-mails between date range ( Including Sent Items ) :

New-MailboxExportRequest -ContentFilter {(Received -lt “04/01/2017”) -and (Received -ge “03/01/2017”) -or (Sent -lt ’04/01/2017′) -and (Sent -ge “03/01/2017”)} -Mailbox “alice.cooper” -Name ACooperExp -FilePath \\server_name\temp\alice_c.pst 

Use -le / -ge to include the date specified.

# Check on request status
Get-MailboxExportRequest | Get-MailboxExportRequestStatistics

# Remove request after completion
Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest
This entry was posted in Exchange. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *