Exporting PST’s from Exchange 2010

##First you need to grant your self permissions one time

New-ManagementRoleAssignment -Role "Mailbox Import Export" -user cswadmin

Exit Exchange Shell and Enter again

Setup UNC Share, and set the Exchnage server Computer account to have access to the Share&Folder

##Now Run this command for each user’s Mailbox.

New-MailboxExportRequest -Mailbox useralias -FilePath \\server\ExchangeMailboxes\user.pst

#### TO check on the STATUS

Get-MailboxExportRequest | get-mailboxexportrequeststatistics

######WHen they are COmpleted, and you want to CLear them from the History, run this

Get-MailboxExportRequest | where {$_.status -eq "Completed"} | Remove-MailboxExportRequest