Data Recovery Blog – KDR Tools

Exporting Exchange 2016 mailboxes from database to Outlook PST using Shell cmdlets

exporting exchange  mailboxes from

Exchange Server 2016 is a robust platform that can conduct all the administrative jobs with the help of cmdlets in the Exchange Management Shell. At the Shell platform, the Administrator can run the Export Mailbox job using required cmdlets. To export an EDB mailbox to PST, follow these steps:

  1. Assign Mailbox Import Export role to the user
  2. Share the destination PST folder over the network
  3. Export EDB mailbox to the PST file in the shared folder

1. Assign Mailbox Import Export role to the user

Even Exchange administrators don’t have the authority to export a mailbox unless they are assigned a Mailbox Import Export Role. So a user must have this role assigned prior to starting the mailbox export.
New-ManagementRoleAssignment –Role "Mailbox Import Export" –User "<user name>”

To assign the Mailbox Import Export role to the Administrator account, use:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "Administrator"

Note- Mailbox Import Export role can be assigned to a security group too:
New-ManagementRoleAssignment -Role "Mailbox Import Export" -SecurityGroup “<security group name>”

Adding a user or Administrator to this security group will give them the rights to export mailboxes.

2. Share the target PST folder over the network

The folder that contains the target PST file needs to be shared over the network. Follow the steps given below:

  1. Right-click the folder and select Properties.
  2. In the Properties window, click Advanced Sharing under the Sharing tab.
  3. In the Advanced Sharing window, choose Share this folder option and click Permissions.
  4. Add Exchange Trusted Subsystem to Group or user names, and choose the option to allow full control.
  5. Close all the open windows after clicking Apply and OK.

3. Export Exchange EDB mailbox to a PST file

One can move primary mailboxes as well as archive mailboxes to PST using the cmdlets. Use the following syntax:
New-MailboxExportRequest -Mailbox <MailboxName> -FilePath “<Path to the PST file>”

To export an archive mailbox, use the following syntax.
New-MailboxExportRequest -Mailbox <MailboxName> -FilePath “<Path to the PST file>” -IsArchive

After exporting the mailbox to the PST, the mailbox and items can be accessed using MS Outlook.
Note: To view the status of an ongoing mailbox export, you can use the cmdlet GetMailboxExportRequest. And to remove a mailbox export request, you can use the cmdelet Remove-MailboxExportRequest

The alternative for converting EDB to PST

Converting EDB to PST using PowerShell is not the first choice for many administrators due to its technical and time-consuming nature. That is why solutions like Exchange Server Recovery software are often preferred. Using this solution, converting EDB files to PST is easy; you just have to select Export Mailboxes option from the right-click menu after selecting the mailbox. There is also a separate option to export individual messages to PST.

The advantages of Exchange Server Recovery software:

Here is the step-by-step process of exporting the entire mailboxes from an Exchange database to a PST file –

Blog Summary

Exporting Exchange data to PST or converting the EDB file to PST is a valuable method to complete several jobs like recovery, backup, and employee relocations. Running the cmdlets at the Exchange Management Shell is an excellent method, but only a seasoned Administrator can complete the last. If an export job is stuck in the queue, it will be hard to remove it from the system. To remove any chance of complexity, you should use Exchange Server Recovery software to convert the EDB file to PST ultimately..