Microsoft‎ > ‎Exchange‎ > ‎

Use Export-Mailbox command

Exchange 2007 on Win2008R2 x64 can't use Export-Mailbox to pst, Exchange management tools must be installed on 32-bit OS.


one virtual XP with admin credentials ( also admin on Exchange 2007 ) 
IIS installed
Windows Installer 4.5
Outlook 2007

start Management Shell:

Export-Mailbox -Identity "user" -PSTFolderPath "c:\user.pst" -DeleteContent //delete all emails in source/user mailbox and create pst file on c drive

Export-Mailbox -Identity "user" -PSTFolderPath "c:\user.pst" -EndDate "31.12.2012" -DeleteContent //delete all emails in source/user with end date 31.12.2012 and create pst file with all emails from beginning to end date

P.S. You must have permission on mailbox to perform export

Add-ON: if you need to check mailbox size for all users
Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto