Home » Techtalk » PowerShell cmdlet » Run New-MailboxExportRequest in Exchange 2016 using PowerShell

Run New-MailboxExportRequest in Exchange 2016 using PowerShell

Ugra Narayan Pandey | Modified: 2021-11-17T12:39:43+00:00| PowerShell cmdlet | 3 Minutes Reading

Microsoft has released the latest version of Exchange i.e., Exchange server 2016 with new cmdlet New-MailboxExportRequest for exporting Exchange mailboxes in Outlook compatible file (PST). Sometimes, a user needs to perform migration but they do not know that how they can do this. There are two methods to carry out conversion process; manual and automated approaches. Manually, a user can export mailbox using PowerShell in Exchange Management Shell. But there is some limitation associated with a manual method. So, there is also an alternative solution available i.e., RecoveryTools for Exchange Server. It is a third party utility which does the same work as New-MailboxExportRequest Exchange 2016. However, it doesn’t have any drawbacks. In this blog, we are going to describe both methods.

Need To Execute New-MailboxExportRequest In Exchange 2016

There are many reasons due to which we need to perform the conversion. Some of those reasons are mentioned below:

  • To save mailbox data of an employee who left the organization to check in future.
  • To create a backup of Exchange mailboxes for future use.
  • To view Exchange mailbox data in Microsoft Outlook.

Export mailbox using New-MailboxExportRequest via Powershell

The process of exporting Exchange mailboxes using PowerShell cmdlet is a manual method. Here, we are going to discuss various cmdlets.

  • Let us consider, a scenario where James is a primary mailbox which you want to export into PST on the network share folder MyPSTFile on the SERVER02. Now run the below mentioned command to export mailbox to PST:

    New-MailboxExportRequest- Mailbox James -FilePath “\\SERVER02\MyPSTFile\James_Recoverd.pst”
  • If you want to export James’s archive on MyPSTFile network share folder on SERVER02 then go through the below-mentioned command:

    New-MailboxExportRequest- Mailbox James -FilePath “\\SERVER02\MyPSTFile\James_Archive.pst”-IsArchive
  • If you want to export mailboxes messages on the basis of content filtering or word matches ‘profit‘ and ‘sales‘ in the body of the message for the James user mailbox received before May 1, 2016. Execute the below-mentioned command:

    New-MailboxExportRequest -Mailbox James -ContentFilter {(body -like “*profit*”) -and (body -like “*sales*”) -and (Received -lt “01/05/2016”)} -FilePath \\SERVER02\MyPSTFile\James_MyCompanyReports.pst
  • If you need to export all data from James mailbox file JamesData then run the below-mentioned PowerShell:

    New-MailboxExportRequest -Mailbox James -IncludeFolders “#Inbox#” -FilePath \\SERVER02\MyPSTFile\James\JamesData.pst
Limitation Of Manual Method

There are various limitations associated with PowerShell method to export mailboxes. Some of them are mentioned as below:

  • Exporting Exchange mailboxes using PowerShell is a complex method and it is difficult to execute New-MailboxExportRequest in Exchange 2016.
  • A user has to remove the current mailbox export request before starting of a new Exchange mailbox export request.

Alternate Method of New-MailboxExportRequest Exchange 2016

To overcome the limitation of a manual solution, the user can use an automated approach i.e., RecoveryTools for Exchange Server. It is a third party utility that can easily extract and save Exchange mailboxes of Exchange Server 2016 in PST file. This software can save all mailbox items i.e., inbox, contacts, calendars, tasks, notes, etc., into MS Outlook file format. This tool can also recover highly corrupted Exchange mailbox. It supports exporting of encrypted and password protected EDB files without losing a single bit of data. There is no limitation of Exchange database file size.

Conclusion: In this post, we have discussed two approaches to export Exchange mailboxes to Outlook data file. The first method is a manual solution that can be executed with PowerShell (New-MailboxExportRequest Exchange 2016) and another approach is a third party tool. This is an efficient and reliable tool for exporting migrating Exchange mailbox files.