Export Mailbox Data to pst

最後更新: 2016-09-03

 

 


Export Mailbox Data (Exchange Server 2007 SP1)

PST support

  • Outlook 2003
  • Outlook 2007

i.e.

Export-Mailbox -Identity [email protected] -PSTFolderPath C:\PSTFiles\john.pst

Inbox
Deleted Items
Drafts
Junk E-Mail
Outbox
Sent Items
Journal
Calendar
Contacts
Notes
Tasks

If you use any keyword parameters, the Export-Mailbox cmdlet will first export all of the messages, including messages in the dumpster,

and then search the target mailbox for messages that meet the keyword criteria.

 

Copying mailbox content to a subfolder in another mailbox

Export-Mailbox -Identity [email protected] -TargetMailbox [email protected] -TargetFolder Joe

To export all the mailboxes in the sales mailbox database to individual PST files named <alias.pst>:

Get-Mailbox –Database "Sales Mailbox DB" | Export-Mailbox –PSTFolderPath C:\PSTFiles

 

需要的權限

To use Export-Mailbox you need to be delegated the Exchange Server Administrator role,

be a member of the local Administrators group for the target server, and have full access to the source and destination mailboxes. 

The source and destination mailboxes must be in the same Active Directory forest.

 



Exchange 2013

 

Prepare

Folder

Export / Import Folder permission - "Exchange Trusted Subsystem"

Exchange permission

ECP

By default, the permissions required to Import/Export are not assigned to users in an Exchange environment.

    Open EAC (Exchange Admin Center) using Organization Management
    Click Permissions
    Double click Recipient Management
    Click Add located in the Roles sections and on the new page select Mailbox Import Export and click Add -> and then OK (Figure 03)

SHELL

New-ManagementRoleAssignment –Role "Mailbox Import Export" –User "DOMAIN\USER"

start new shell

MailboxExportRequest  /  MailboxImportRequest

PST Format

  • Outlook 2007
  • Outlook 2010

process is completed asynchronously by the Microsoft Exchange Mailbox Replication service (MRS)

service responsible for moving mailboxes and importing and exporting .pst files.

* Create a point-in-time snapshot of a mailbox

* personal archive.

Export 注意事項:

The maximum .pst file size supported by Outlook is 50 gigabytes (GB).

Data can't be imported to a public folder

Import 注意事項:

 * By default, an import request includes the user's Recoverable Items folder if it's present in the .pst file.( ExcludeDumpster )
 * You can import items to only the user's personal archive by specifying the IsArchive parameter.

P.S.

Recoverable deleted items isn't a folder in the mailbox in the same sense that Deleted Items or Inbox are.

 


Usage

 

Export

New-MailboxExportRequest -ExcludeDumpster -Mailbox tester -FilePath "\\192.168.10.105\pst_folder\tester.pst"

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  x.x/mailbox_users/tim lau           Queued

Get-MailboxExportRequest

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxExport                                  x.x/mailbox_users/tim lau           Completed

Get-MailboxExportRequestStatistics

Import

New-MailboxImportRequest -Mailbox tim.lau -FilePath "\\192.168.10.105\pst_folder\tester.pst"

Get-MailboxImportRequest

Name                                           Mailbox                                        Status
----                                           -------                                        ------
MailboxImport                                  x.x/mailbox_users/tim lau                      Completed

Get-MailboxImportRequestStatistics -Identity "tim.lau\MailboxImport1"

Name                                   StatusDetail              TargetAlias                           PercentComplete
----                                   ------------              -----------                           ---------------
MailboxImport                          Completed                 tim.lau                               100

Get-MailboxImportRequestStatistics -Identity "tim.lau\MailboxImport"

QueuedTimestamp                        : 9/2/2016 3:25:30 PM
StartTimestamp                         : 9/2/2016 3:25:37 PM
LastUpdateTimestamp                    : 9/2/2016 3:26:24 PM
CompletionTimestamp                    : 9/2/2016 3:26:24 PM

OverallDuration                        : 00:00:54

EstimatedTransferSize                  : 147.3 MB (154,473,217 bytes)
EstimatedTransferItemCount             : 45

BatchName - The BatchName parameter specifies the name of the batch.

 

# Cleaning-up (removes all the Requests)

Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest –Confirm:$False

Get-MailboxImportRequest -Status Completed | Remove-MailboxImportRequest

 

Remark

export (outlook 2010)

2G ~ 5min

import

2G ~ 21min


 

Creative Commons license icon Creative Commons license icon