I Need To Make A Change With My IT Support! Call (225) 706-8414

Exporting Exchange 2010 mailboxes to PST

You want to export a mailbox directly to PST on an Exchange 2010 server.


First, you need give yourself permission to use the export comdlets in Powershell:

  1. Run the Exchange Management Shell as an administrator
  2. Run the following command:
    New-ManagementRoleAssignment –Role “mailbox import export” –User $env:username
  3. Close the Exchange Management Shell; the changes are in effect to the current session.

You now have the permissions to export a mailbox:

  1. Run the Exchange Management Shell as an administrator
  2. Run the following commaond:
    New-MailboxExportRequest –Mailbox username –FilePath “\servernamesharepathtofile.pst”
    Where username is the user who’s mailbox to export; the FilePath paramenter takes a UNC path, not a normal file path and you should include the name of the PST as part of the path.
  3. This will create an export request; you check the status using the Get-MailboxExportRequest cmdlet.

You can alse export all the mailboxes in an organization instead of doing each one manually:

$share = “\servernamesharepath”
$mailboxes = Get-Mailbox
$mailboxes | ForEach-Object { $n = $_.alias; New-MailboxExportRequest – Mailbox $n -FilePath “$share$n.pst” }

This will create a PST for each mailbox named the same as their mailbox alias, all in the same folder on the specified share. You can’t pipe Get-Mailbox directly to the ForEach-Object loop; you will get an error “Pipeline not executed because a pipeline is already executing.”

Concerned About Cyber Attacks?


Want to Migrate to the Cloud?

Office 365

Ready to Experience Microsoft Office 365?

Want the latest IT news directly in your inbox? Subscribe now!