Export an Exchange Mailbox to a PST file
The below powershell script can be used to back up an individual mailbox to a PST file that includes all folders and contacts.Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
. $env:ExchangeInstallPath\bin\RemoteExchange.ps1
Connect-ExchangeServer -auto
remove-item -path "c:\pst\nick_beare.pst"
New-MailboxExportRequest -Mailbox nicholas_beare -FilePath \\WIN-AO2JEOPL25O\pst\nick_beare.pst
TIMEOUT /T 300
$nickbeare = get-childitem c:\pst | Select-Object Name, lastwritetime, @{Name="MegaBytes";Expression={$_.Length / 1MB}} | Format-Table -Auto | out-string
send-mailmessage -to "Nick <&recipient@nickbeare.com>" -from "mail <&sender@nickbeare.com>" -body $nickbeare -subject "PST Backup" -smtpserver WIN-MAIL
get-mailboxexportrequest -status completed | remove-mailboxexportrequest -Confirm:$false