<

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x

Export, Import data in Exchange Server. Even between different users or merging data of multiple users.

Published on
4,031 Points
1,031 Views
Last Modified:
Schnell Solutions
Skilled Infrastructure Engineer with 15 years of experience planning, designing, implementing and administering Microsoft base Platforms.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data to one user from many different mailboxes.
1. Create and share a folder with read/write access for the ‘Exchange Trusted Subsystem’ group and the user completing these steps. (It is a very easy step that can be completed through the GUI, but just for making it a bit different I will show the steps using the command line:

In this example, I am using my ADATUM\administrator account to complete the entire process. And I will create a folder called PstData on the ‘D’ drive, which is going to be shared with the same name.

Create the directory:
MD D:\PstData

Assign NTFS permissions:
CACLS D:\PstData /E /G “Adatum\Exchange Trusted Subsystem”:F   Administrators:F
1.pngShare the folder:
Net Share PstData=D:\PstData “GRANT:Adatum\Administrator,FULL”  “GRANT:Adatum\Exchange Trusted Subsystem,CHANGE”
2.pngAgain, you can omit the previous commands and just create a new folder and share it with the correct permissions using the GUI.
We were unable to retrieve your image. Please edit your article and use the "Attach File" feature to add your image.

2. In order to execute IMPORTs or EXPORTs of data we need to have assigned an Exchange role called ‘Mailbox Import Export’. By default, no group or user is a member of this group, even the Exchange administrator. This step can be performed through the Exchange Management Shell or the Exchange Control Panel (Web administrative interface).
In this example I am assigning the role to the administrator account:

New-ManagementRoleAssignment –Role “Mailbox Import Export” –User “Adatum\Administrator”

We were unable to retrieve your image. Please edit your article and use the "Attach File" feature to add your image.

3.pngNote: Another option is to assign the permission to an Universal group, rather than a user.

3. Close and then Open the Exchange Management Shell.
As far as the Exchange Management Console works accordingly to RBAC (Role Base Access Control), it is when the EMS starts and the connections are made that the remote section permissions are set. The purpose of closing the EMS is because it is not going to include the commands of the permissions assigned, therefore, we will need to open the window again.

4. Now we are ready to export/import or the mailboxes that we want.
In this example, I will export the mailboxes of two users: Luca and Scott to the previously created folder ‘\\VAN-EX1\PstData\’

I will use a command for each export operation:
New-MailboxExportRequest –Mailbox Luca –FilePath \\VAN-EX1\PstData\Luca.pst
New-MailboxExportRequest –Mailbox Luca –FilePath \\VAN-EX1\PstData\Scott.pst

We were unable to retrieve your image. Please edit your article and use the "Attach File" feature to add your image.

4.png
5. Depending on how large or complex are these mailboxes it might or might not take a long time. We can review when the process is complete using the following command:

Get-MailboxExportRequest

We were unable to retrieve your image. Please edit your article and use the "Attach File" feature to add your image.

5.png6. Importing data to a mailbox:
We can import the data to the same mailbox, or to a different mailbox. In this example I will take the two mailboxes previously exported and I will export them back to a third (different) user called ‘Andreas’
New-MailboxImportRequest –Mailbox Andreas –FilePath \\Van-Ex1\PstData\scott.pst -Confirm: $False
New-MailboxImportRequest –Mailbox Andreas –FilePath \\Van-Ex1\PstData\luca.pst -Confirm: $False

We were unable to retrieve your image. Please edit your article and use the "Attach File" feature to add your image.

6.png
7. Monitor the process.
Similar to the Export operation, we can monitor when the import operations are completed:

Get-MailboxImportRequest

We were unable to retrieve your image. Please edit your article and use the "Attach File" feature to add your image.

7.png
8. Finally, all the data is merged with the user’s mailbox:
Notice that now my Andreas user contains the mailboxes from both ‘Luca’ and ‘Scott’

8.png
0
0 Comments

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month