foreach ($i in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $i -FilePath "\\UNCPATH\$($i.Alias).pst"}
If your server resources not sufficient to do the export your server may restart automatically. As a workaround below mentioned commands will help you to export to PST without exchange server service restart/outage by doing a mailbox export one by one.
foreach ($i in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $i -FilePath "\\Backupserver\PSTs\$($i.Alias).pst" -baditemlimit 50 -acceptlargedataloss ;while ((Get-MailboxExportRequest -mailbox $i | ? {$_.Status -eq “Queued” -or $_.Status -eq “InProgress”})) { sleep 180 } }
foreach ($i in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $i -FilePath "\\Backupserver\PSTs\$($i.Alias)\$($i.Alias).pst" -baditemlimit 50 -acceptlargedataloss ;while ((Get-MailboxExportRequest -mailbox $i | ? {$_.Status -eq “Queued” -or $_.Status -eq “InProgress”})) { sleep 180 } }
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (7)
Author
Commented:Commented:
Author
Commented:If yes please check these
http://windows.microsoft.com/en-us/internet-explorer/add-view-organize-favorites#ie=ie-10
http://www.computerhope.com/issues/ch000858.htm
if you want to add to bookmark in your profile in Experts-Exchange database please click "Add to Personal Knowledgebase"
Commented:
Must the PowerShell script be executed on the server with Outlook installed or it can be executed on the Laptop with PowerShell remoting running?
Open in new window
Author
Commented:From Exchange2010 onwards Outlook binaries are included in server.
View More