Bulk export Exchange 2013 mailboxes to PST

get-mailbox|%{$_|New-MailboxExportRequest -FilePath “//servername/pst/$($_.alias).pst“}

Update 29/04/16

First step (Powershell may appear unable to find the new-mailboxexportrequest cmdlet) add the role to the existing user and re-open Exchange Shell,

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User Administrator

Second create a share (even if on the local server) and grant full permissions to the Exchange Trusted Subsystem group.

Alternate way to export (if you get “Pipeline not executed because a pipeline is already executing. Pipelines cannot be executed concurrently” error)

foreach ($i in (Get-Mailbox)) { New-MailboxExportRequest -Mailbox $i -FilePath “\\servername\pst\$($i.Alias).pst” }

To re-import similar process using (works on Exch 2010 too)

dir \\servername\pst\*.pst | %{ New-MailboxImportRequest -Name import-Mailbox $_.BaseName -FilePath $_.FullName -TargetRootFolder /}


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s