Remember the good old days when you wanted to export an e-mail account out of exchange for archiving, or just general backup purpose? We admins needed to install EXMERGE!Exmerge was, and still is, a blessing to admin's everywhere, it was a powerful tool that gave you more control of exporting or importing mailboxes in exchange, packaging everything up in a nice .PST file so you can re-import, or open it up with outlook. Let's face facts though, by today's standards, its not the most elegant/modern solution going. I was happy to see that Microsoft added this functionality in exchange 2010 through Powershell, and no Outlook required!
First off, we need to add your AD account as part of the mailbox import export role, lets fire up the Exchange Management Shell and type up:
New-ManagementRoleAssignment –Role “Mailbox Import Export” –User domain\AdministratorAccount
Before we start exporting and importing, there is one small snag, we need to use network shares for output and input of pst files. Of course, it can be a share within the exchange server itself. (Make sure you have full read and write permissions on the share!)
So lets start with Exporting.
When your importing or exporting, you issue a request, think of it as moving a mailbox in the Exchange Management Console. The request holds the status of the job, even when the job fails or completes.
To start an export request:
New-MailboxExportRequest -Mailbox user -FilePath "\\server\share\user.pst"
This will issue an export request.. now what? We can list the export request by issuing:
There is a more detailed output:
this is good, but now i want the full details of the request I just made:
get-mailboxexportrequeststatistics -identity user\mailboxexport | fl
If we want to create a mailbox import request, its the same commands, but just change "export" to "import"
New-MailboximportRequest -Mailbox user -FilePath "\\server\share\user.pst"
get-mailboximportrequeststatistics -identity user\mailboximport | fl