Exchange 2010 SP1 mailbox export - is there a command for synchronous exports?
Hello:
Is there a command/script for synchronous mailbox exports, similar to MoveMailbox.ps1 for synchronous mailbox moves? It looks like RTM version had
Export-Mailbox, which I no longer see in SP1. Thanks.
May 5th, 2011 11:22am
Hi,
To export mailbox in exchange 2010 SP1 you can use the cmdlet
New-MailboxExportRequest
Best regardsBest Regards Don't forget to mark it as answer if it helps
Free Windows Admin Tool Kit Click here and download it now
May 5th, 2011 2:27pm
Thanks for the reply. I forgot to mention that I'm aware of the New-MailboxExportRequest cmdlet. That cmdlet is not real-time (synchronous). The request actually gets queued and there's a delay before it actually runs.
May 5th, 2011 3:25pm
Sorry! But I think there's no other way to do that!
thxBest Regards Don't forget to mark it as answer if it helps
Free Windows Admin Tool Kit Click here and download it now
May 5th, 2011 3:50pm
I never found an alternative for the New-MailboxExportRequest, but I created the same experience with this script:
#Queue a single request
New-MailboxExportRequest -BatchName $BatchName -Mailbox $Mailbox.Alias -FilePath "$($ExportShare)\$($Mailbox.Alias).PST"
#wait for request to complete
while ((Get-MailboxExportRequest -BatchName $BatchName | Where {$_.Status -eq "Queued" -or $_.Status -eq "InProgress"}))
{
sleep 5
}
Maybe it helps.
Best regards,
Joep
September 14th, 2012 6:22am