After Microsoft released Exchange Server Service Pack 1 (SP1) they added new functionality called Export-Mailbox cmdlet for Exchange Management Shell.
To export data from a .PST file, you must run the Export-Mailbox cmdlet on a 32-bit computer that has the 32-bit version of the Exchange management tools and Outlook 2003 Service Pack 2 (SP2) or Outlook 2007 installed.
Well all prerequisites were in place; I opened the Exchange Management Shell and run the following command line:
The export failed. After reading some posts on Google, I found the solution myself. I tried to export my own mailbox which worked fine so the problem has to be within the permissions set. To get full access run the Add-MailboxPermissions cmdlet.
How to export Exchange mailbox into a PST file?
Add-MailboxPermission -identity user1 -Accessrights FULLACCESS -User admin
Export-Mailbox -identity user1 -PSTFolderPath c:\user1.pst
With these steps I can develop a procedure to backup mailboxes when they are removed from the system.