How Does the New-MailboxExportRequest Work in Exchange Server?

Aftab Alam Aftab Alam Updated On - 30 Oct 2019

Microsoft Exchange Server provides numerous features and settings to handle your Exchange databases, mailboxes and public folders. It also offers a unique feature like Exchange Management Shell – a cmdlet service – which lets you run a significant number of commands and complete the desired action. The benefit of Exchange Management Shell is that you do not need to access any mailbox or database manually but run the command and make the changes you want.

In the preset writeup, we are going to discuss the following command –

New-MailboxExportRequest

This cmdlet lets you export Exchange mailboxes to Outlook PST files. This command is present only in the Mailbox Import-Export role, and that role is not assigned to any role group, by default. So, if you want to run this command, then you need to include the role of any related role group. Here is the process –

  1. Start the Exchange Admin Center using Administrator credentials. Select the option permissions, and then admin roles. Here, select the Organization Management role group and click the Edit button.
  2. Start the Exchange Admin Center

  3. Click the add (+) button under Roles.
  4. Click the add (+) button under Roles

  5. Select Mailbox Import Export role. Click Add; then click OK.
  6. Select Mailbox Import Export role

  7. Check whether the selected role is present in the role list. Finally, click the Save button.
  8. check selected role and save

  9. In the last step, you can see and verify that the role is present in the role group.
    verify the role presentation in role group
    Now, you can go to Exchange Management Shell and run the mailbox export request.

Export Exchange Mailbox to PST

Before starting the export request, you should make sure that the destination folder where you will save the PST file is a network shared folder.

Step – 1. To convert a folder to a shared folder, right-click the folder, go to its sharing option and click the share button. After sharing, click the OK button.
convert a folder to a shared folder

Step – 2. Start the Exchange Management Shell as an Administrator.
Start the Exchange Management Shell
Step – 3. Run the command –

Get-Mailbox

It will enlist all the mailboxes in the organization.
Step – 4. Run the second command –

New-MailboxExportRequest -Mailbox MailboxName – FilePath “Complete Path of Shared Folder”

Run the second command

After running the command, the mailbox will be in a queue for the migration.

Step – 5. After completing the migration, you can go to the destination folder and see a newly created PST file.

view the newly created PST file

The mailbox export request has some useful parameters which you can use depending on your need. Here are some prominent parameters useful at various levels –

  • -BatchName
    The bath name parameter mentions a unique name to the export mailboxes in batch.
  • -Exclude Folders
    This parameter allows you to select such folders present in the mailbox which you do not want to export. The folder names are not case sensitive. Also, there are no character restrictions. All the folders of a mailbox like an inbox, calendar, contacts, tasks, notes, voicemail, fax, journals, drafts, sent items, deleted items, etc. can be used.
  • -Include Folders
    This parameter lets you select such folders present in the mailbox which you surely want to export to a PST file. There is no limitation like case-sensitiveness or character restrictions. All the folders of a mailbox like an inbox, calendar, contacts, tasks, notes, voicemail, fax, journals, drafts, sent items, deleted items, etc. can be used.
  • -Priority
    The priority parameter provides the order in which the export job will run. These priority values are lower, low, normal (default), high, higher, highest, emergency.
  • -TargetRootFolder
    The Target Root Folder parameter mentions the top-level folder where the data will be saved. In case, if you do not specify the parameter, then the mailbox folders will migrate to the top of the folder in the PST file.
    The manual export job using the Mailbox Export Request to take a backup of Exchange mailbox is quite limited in scope as many users are not comfortable in using cmdlets.

If you want to take a secure backup easily, then you can also use a professional tool called Kernel Exchange Backup tool. It can access the Exchange data and provide a much better environment for the backup.

Kernel Exchange Backup & Restore

Kernel Exchange Backup & Restore is a light-weight software which lets you export backup Exchange mailboxes directly to PST files. You can select single or unlimited mailboxes, apply filters, and send data to the desired location. Each mailbox gets saved to the respective PST file with the same name as that of the mailbox.