Exchange Server 2010 mass export mailboxes to pst file

Last time we wrote how to export mailbox from Exchange 2010 to pst file and import items from pst file to Exchange 2010 mailbox.

Exchange 2010 export import mailboxes

Now we will explain how to export few mailboxes at once from Exchange 2010.

When you want to export few mailboxes at once to .pst files you have to get aliases of those mailboxes and then run New-MailboxExportRequest in ForEach loop.

Below we present few examples how to export mailboxes with specified conditions:

To export mailboxes from specified mailbox database use:

ForEach ($mbx in (Get-Mailbox -Database DatabaseName)) {
 New-MailboxExportRequest -Mailbox $mbx -FilePath "\\server\share_pst\${$mbx.Alias).pst" 
}

Continue reading

Exchange 2010 export import mailboxes

 

Service Pack 1 for Exchange 2010 changed mailboxes import export to .pst file.

After you install Service Pack 1 for Exchange Server 2010 you need to use new CMDlet’s to import or export mailboxes:

  • New-MailboxExportRequest - to export mailbox
  • New-MailboxImportRequest - to import mailbox

To be able to export or import mailbox you need to meet following requirements:

  • have Export Import RBAC rights
  • have network share where you will export mailbox to .pst file

 

Assigning needed rights to export import mailbox from Exchange 2010:

When you write New-MailboxExportRequest in EMS (Exchange Management Console) and you will receive error that this command is not recognized, it means you don’t have adequate permissions.

You have to add Mailbox Import Export role for specified user or security group.

This security group should be universal.

Below command will add necessary permissions for security group MBX_imp_exp:

New-ManagementRoleAssignment -Name "Import Export Mailbox Admins" -SecurityGroup "MBX_imp_exp" -Role "Mailbox Import Export"

Continue reading