How to Export Exchange 2016 Mailboxes to PST – PowerShell

Summary: In today’s business world, most organizations depend on email for communication. Out of the many mail exchange servers available today, Microsoft Exchange is the most popular one and is used across organizations worldwide. One of the limitations of all Microsoft Exchange versions, including Exchange 2016, is its backup capabilities, especially at the granular level. There aren’t many choices for backup, and your best bet is to export all emails to PST files. This is why we are going to show you how you can easily export Exchange 2016 mailboxes to PST using simple PowerShell commands.

The practice of exporting mailbox data to PST using PowerShell commands is becoming a popular option because more users are migrating to Exchange Server’s latest 2016 version. In this latest release, Microsoft has added many new features and one of them is a cmdlet for exporting mailbox data to PST files. However,  this option is available only in on-premises Exchange Server 2016.

Since exporting a mailbox to PST is an important form of granular backup, we would like to share our expertise on Exchange 2016 cmdlet New-MailboxExportRequest, and will show you how you can easily export Exchange 2016 mailboxes data to PST format by simply using this PowerShell in an Exchange Management Shell.

But New-MailboxExportRequest command is available only in Mailbox Import Export role, and not to a role group. To use this command, you have to add the Mailbox Import Export role to a role group. Check here to know how to add a role to a role group.

Once you’ve assigned a role to a role group, you can perform the below PowerShell steps to Export Exchange Server mailboxes data.

PowerShell to Export Exchange 2016 Mailbox to PST

  1. Let’s consider a scenario where you have to export a user’s primary mailbox data to PST file on an Exchange Server’s network shared folder., Here, Thomson is a primary mailbox user, MyNetworkPST is a network shared folder, and SERVER22 is the server.

The command to export PST file

New-MailboxExportRequest -Mailbox Thomson -FilePath “\\SERVER22\MyNetworkPST\Thomson_Recovered.pst”
  1. Consider another case where you have to export Thomson’s archive to a PST file on MyNetworkPST network shared folder located on Exchange Server SERVER22.

The cmdlet for this scenario is,

New-MailboxExportRequest -Mailbox Thomson -FilePath “\\SERVER22\MyNetworkPST\Thomson_Archive.pst” –IsArchive

  1. You can even export mailbox messages based on content filtering or word matches. In this example, ‘target‘ and ‘sales‘ are the keywords we look for in the body of the message for Thomson user mailbox received before May 2, 2015. The cmdlet for this complex scenario is rather simple, like this:

New-MailboxExportRequest -Mailbox Thomson -ContentFilter {(body -like “*target*”) -and (body -like “*sales*”) -and (Received -lt “02/05/2015”)} -FilePath \\SERVER22\MyNetworkPST\Thomson_MyCompanyReports.pst

And in case you want to export all the Thomson mailbox messages to the PST file ThomsonData, run the below PowerShell cmdlet-

New-MailboxExportRequest -Mailbox Thomson -IncludeFolders “#Inbox#” -FilePath \\SERVER22\MyNetworkPST\Thomson\ThomsonData.pst

 

You can also create multiple mailbox export requests for every mailbox, but each request must have a unique name. Exchange server automatically generates up to 10 unique names for a request, but if you want to export more than 10 mailboxes, you will have to specify a unique name. You can also remove the current mailbox export request by executing Remove-MailboxExportRequest cmdlet before starting a new mailbox export request with the default request name. Also check for Import Export permission over here , as it is required to get a better understanding of what permissions are needed to run these cmdlets.

Note: Users can check the detailed status of ongoing export by using – Get-MailboxExportRequest

Thus, this is the way to export mailboxes into .pst file from Exchange 2016, provided you can run shell commands in Exchange Management Shell. But if you find any difficulty in the above process, we suggest you try Stellar Converter for EDB export tool, as it is a more efficient way to export EDB/Mailbox items to PST file. Whether you’re using Exchange Server 2016, 2013, 2010, or any other previous version; this software is ideal because it supports all MS Exchange versions. You can download the demo version here:

You can not only export live mailboxes to PST but can also convert an offline EDB file to PST format. Additionally, the inbuilt functionality of this software allows you to export offline mailboxes to any other live exchange server and Office 365.

Please reach out to us to learn more about this award-winning tool.

3 Comments

  1. Brandon June 10, 2016
  2. Paco August 22, 2017
    • Admin August 25, 2017

Leave a Reply

Your email address will not be published. Required fields are marked *