Exchange2013 SP1 Export and import PST data file via EMS

Source: Internet
Author: User
Tags microsoft outlook

Exchange2013 SP1 Export and import PST data file via EMS

As an enterprise administrator, in many cases, you need to export or import mailbox data from the mailbox user's database in the Exchange mail server to the Exchange Server China mailbox database for the following reasons: 1. Meeting compliance requirements You can export mailbox content to a. pst file for discovery purposes ( You can use New-mailboxexportrequest to move the data). After the export is complete, you can import the content into a mailbox that is dedicated to compliance purposes. 2. Create a point-in-time mailbox snapshot by creating a snapshot of a specific mailbox, you no longer have to keep the entire backup set for the mailbox database. 3. Move the user's. pst file to their mailbox or personal archive Microsoft Outlook users can save their e-mail locally as a. pst file. You can use New-mailboximportrequest to move data from a user's. pst file to their mailbox or personal archive. This method is an easy way to transfer e-mail messages from a user's local computer to an Exchange server.
Before you import or export mailbox data, consider the following:

1. To import or export mailbox data, you must set up a network shared folder that can be accessed by the Exchange server. You must also grant read/write permissions to the Exchange trusted subsystem group so that the group can access the network shares in which you import and export mailbox data. If you do not grant this permission, you will receive an error message that indicates that Exchange cannot establish a connection to the destination mailbox.

The maximum size of the. pst file that is supported by 2.Outlook is GB. Therefore, it is recommended that you do not import. pst files above GB. You can create multiple. pst files for more than one mailbox by specifying a specific folder to include or exclude, or by using content filters.

3. Import and export requests are performed by MRS and are also responsible for processing move requests and mailbox restore requests. All requests are queued and restricted by MRS.

4. Depending on file size, network bandwidth, and MRS restrictions, it can take several hours to import and export mailbox data.

5. Data cannot be imported into a public folder or public folder database.

We first log in to the user's mailbox, send each other test messages, and then export, so that we can see the effect

Again we take: User01, User02 for example:

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DD/wKiom1U4ln7Q0v33AAF0HuhezWw781.jpg "height=" 426 "/>

We first send test messages to each other through OWA

User01 user sends test message to USER02

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DD/wKiom1U4ln-wm7byAAFEyJUC7qE943.jpg "height=" 407 "/>

USER02 reply message after receiving mail

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DE/wKiom1U4ln-RO2miAAF8qCBuH2A694.jpg "height=" 428 "/>

User01 received reply message

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/6b/de/wkiom1u4ln_xpvqsaafamticycu286.jpg "height=" 417 "/>

You need to operate with EMS, but the Exchange Server administrator for the operation must be the mailbox import export role, by default, any users and groups in the Exchange mailbox service are not part of this role, and you can use the following command to make the user the mailbox Import export role

New-managementroleassignment

Consider the Administrator user account Assignment "Mailbox Import Export Role" as an example, the command is as follows:

New-managementroleassignment-name "Import export_domain Admins"-user "Administrator"-role "Mailbox Import Export"

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DE/wKiom1U4ln-y96ItAAGTS2a1qpo915.jpg "height="/>

Of course we also have the following command to see if the administrator currently has a mailbox import export role.

Get-managementroleassignment

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DE/wKiom1U4loCClsTbAAIleQcjVaQ952.jpg "height=" 257 "/>

If you want permission to view the specified user, use the following command

Get-managementroleassignment-writablerecipient users–geteffectiveusers

For example, we confirmed by administrator.

Get-managementroleassignment-writablerecipient administrator–geteffectiveusers

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DE/wKiom1U4loCQRSxaAAJLKhlfTFs835.jpg "height=" 261 "/>

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DA/wKioL1U4l97j--iAAAKyeK6uwkY896.jpg "height=" 295 "/>

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DA/wKioL1U4l96BxtRlAAJtRQHwoyg084.jpg "height=" 293 "/>

In fact, there are many, I skipped the middle part, there is no duplication, if there is a need for everyone can view their own

Next, you export the mailbox by creating a mailbox export request. The command to create the export request is as follows:

New-mailboxexportrequest

For more information, refer to: https://technet.microsoft.com/zh-cn/library/ff607310.aspx

For example, to export the primary mailbox of the user "User01" to the file server "10.10.1.52", the command is as follows:

New-mailboxexportrequest-mailbox User01-filepath \\10.10.1.52\mailbak\user01.pst


650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DA/wKioL1U4l9_S9CzLAACgLEEUW6U568.jpg "height="/>

Effects of export

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DA/wKioL1U4l9_DrpFiAAGPduVKgwI777.jpg "height=" 386 "/>

New-mailboxexportrequest also supports exporting a specific folder in a user's mailbox as a PST, such as: Exporting the user's "User01" to a PST:

New-mailboxexportrequest-mailbox user01-includefolders "#Inbox #"-filepath \\10.10.1.52\mailbak\user01_inbox.pst


650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DA/wKioL1U4l9-ytzq0AAGe9zC4veg345.jpg "height=" 382 "/>

We use Outlook to mount the downloaded PST to see if it is correct

Open the Outlook configuration----data file----Add---Select

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DA/wKioL1U4l9_zoQGBAAGS3afLxUo801.jpg "height=" 397 "/>

After adding, we view

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DA/wKioL1U4l-DyhTiWAAEQ85-SMFw457.jpg "height=" 389 "/>

Let's open the User01.pst preview.

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DA/wKioL1U4l-DDuxdkAAF3Nsh5rU8885.jpg "height=" 379 "/>

On opening User01 's inbox.pst

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DA/wKioL1U4l-DxoVY_AAFntJRDNdE332.jpg "height=" 373 "/>

If you need to export a message that contains "company" and "profit" in the body of the message that the user User02 received before January 1, 2015.

New-mailboxexportrequest-mailbox Tony-contentfilter {(body-like "*company*")-and (body-like "*profit*")-and (Receive D-lt "01/01/2012")}-filepath "\\SERVER01\PSTFileShare\user02_CompanyProfits.pst"

However, it is important to note that these export requests are not automatically deleted after the mailbox export request is created, even after the export operation has completed. You can view an existing mailbox export request by using the following command:

Get-mailboxexportrequest

For more information, refer to: http://technet.microsoft.com/zh-cn/library/ff607479.aspx

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DE/wKiom1U4loLSxRe8AACxga_5FXk340.jpg "height=" 123 "/>

We look at the detailed

Get-mailboxexportrequest | Fl

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DA/wKioL1U4l-DyOAvXAAGH4wDbSHY534.jpg "height=" 322 "/>

We can also use the following command to view the details of the export completion:

Get-mailboxexportrequeststatistics-identity Users\mailboxexport1

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DA/wKioL1U4l-DSZcqGAACCjTUPIhc614.jpg "height="/>

You can see that the four mailbox export requests that you created previously exist in the list. For a completed mailbox export request, there is no need to continue with the request list, you can delete it using the following name:

Remove-mailboxexportrequest

For more information, refer to: http://technet.microsoft.com/zh-cn/library/ff607464.aspx

To delete the mailbox export request that you created earlier, for example, a mailbox export request based on "User01" user "MailboxExport1" has a status of "competed", so it can be removed. Here's how:

Remove-mailboxexportrequest-identity "User01\mailboxexport1"

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DA/wKioL1U4l-CABIVJAADlSxYP5Dg385.jpg "height=" 162 "/>

We can delete it by serial number, we delete all export list

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DA/wKioL1U4l-HBlROcAAG2e-Z1r2M494.jpg "height=" 324 "/>

We find that we need to execute multiple times, so we can execute a command to delete all export requests that have a status of completed.

Get-mailboxexportrequest-status Completed | Remove-mailboxexportrequest

For the import and export features in the mailbox we can summarize the following commands:

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DE/wKiom1U4loPjF9NNAAEQDad3kcI202.jpg "height=" 178 "/>

Next we are importing the PST file to the user's Exchange mailbox:

We first find a PST file that contains the contents of the PST file

The approximate function is shown below:

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DE/wKiom1U4loOT3RZqAAEIxIkpR_Q856.jpg "height=" 175 "/>

We first created a PST file locally and then built 5 new folders to mimic different information

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DA/wKioL1U4l-Hgz3XHAADJUZc2lQs768.jpg "height=" 326 "/>

Then we need to import the PST file under the USER02 Exchange mailbox User:

PST file path \\10.10.1.52\mailbak\gavin-pst.pst

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DA/wKioL1U4l-GjFOW_AACxNODc_ck937.jpg "height=" 234 "/>

We use the following command:

10.10.1.52 shared PST file is imported into User02 's mailbox

New-mailboximportrequest-mailbox User02-filepath \\10.10.1.52\mailbak\gavin-pst.pst


650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DA/wKioL1U4l-GRWjkVAAC1siF_dhw572.jpg "height=" 199 "/>

After we import it through

Get-mailboximportrequest

View queues

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DA/wKioL1U4l-LBW47YAADcl6Zfac4508.jpg "height=" 225 "/>

We then log in to User02 's OWA to see if the contents of the local PST file were successfully imported and successfully imported.

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DA/wKioL1U4l-Li6fxHAAFbBebgJIU338.jpg "height=" 386 "/>

The restored. pst file in 10.10.1.50 is imported to the user User02 's primary mailbox. Import only the data from the. pst file's Inbox. Import the data into the Recoveredfiles folder of the target mailbox of User02.

New-mailboximportrequest-mailbox User02-filepath \\10.10.1.52\mailbak\gavin-pst.pst-TargetRootFolder " Recoveredfiles "-includefolders" #Inbox # "

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DE/wKiom1U4lp-ScooLAAE-Va3KfuM872.jpg "height=" 325 "/>

We'll check User02 's email again.

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DE/wKiom1U4lp-CxsQQAAFnVddSMpM360.jpg "height=" 408 "/>

Import the. pst file into the Bak archive folder. Targetrootfolderis not specified, so merging the contents of an existing folder creates a new folder if the destination folder structure does not contain the content.

New-mailboximportrequest User2-filepath \\server\share\User1.pst-IsArchive-TargetRootFolder/

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/6B/DE/wKiom1U4lp_zV2F0AADgESpfKfw521.jpg "height="/>

Import all. pst files on the shared folder. Name each. pst file name after the corresponding user's alias. command to create an import request for all. pst files and import the data into a matching mailbox.

Dir \\server01\pstsharero\recovered\*.pst | %{new-mailboximportrequest-name recoveredpst-batchname recovered-mailbox $_. Basename-filepath $_. Fullname-targetrootfolder Subfolderinprimary}

Finally we look at the queue

Get-mailboximportrequest

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M01/6B/DE/wKiom1U4lp-B5ma_AACjhWDbi_w958.jpg "height="/>

We then delete the queue with the following command

Remove-mailboximportrequest-identity "User02\mailboximport1"

650) this.width=650; "title=" image "style=" border-top:0px;border-right:0px;background-image:none;border-bottom:0 px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M02/6B/DA/wKioL1U4l_7y-_lCAAFa0f14sGA677.jpg "height=" 325 "/>

This article is from the "Gao Wenrong" blog, make sure to keep this source http://gaowenlong.blog.51cto.com/451336/1637579

Exchange2013 SP1 Export and import PST data file via EMS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.