Exchange 2010 SP1 and Exporting Mailboxes

Back in the days of Exchange 2003 we used EXMerge, with 2007 and with the original release of 2010 we used Export-Mailbox. However, Export-Mailbox required the system which was performing the Export had a copy of Outlook 2010 installed. Now with Exchange 2010 SP1 this functionality has been migrated to New-MailboxExportRequest. This new method pushes the export back to the CAS servers and removes the dependency of having the Outlook client installed.

Start by pulling up an Exchange Powershell window. Execution policy needs to be at a minimum Remote-Signed (checking can be done with Get-Executionpolicy and modifcations with Set-ExecutionPolicy)

Before we can actually use the command due to the addition Role-Based Access Control (RBAC) we need to first grant the account permission to perform the exports:

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User mydomain\MyAdminAccount

Next we need to create a share on a server and give “Exchange Trusted Subsystem” read/write access to the share.

Now we can actually perform the export request:

New-MailboxExportRequest -Mailbox jsmith -FilePath "\\myserver\MyExportShare$\jsmith.pst"

The export itself will take some time to complete, if you wish to check the status of export, there is a method of doing so.

Get-MailboxExportRequest | Get-MailboxExportRequestStatistics | select-object SourceAlias,Status,PercentComplete

Finally once the export has completed, you can cleanup the old request by:

Get-MailboxExportRequest | Remove-MailboxExportRequest

Leave a comment

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