Exchange 2010 Bulk PST Import

12th March 2017
by InfiniteMonkeys
  • Image Caption

Bulk import PST files to Exchange 2010

 

So, you have a bunch of PST files to import into Exchange 2010?

Grant the Import/Export role:
New-ManagementRoleAssignment -Role “Mailbox Import Export” -user “username”

Get exchange to import every PST under “\\ex01\*.pst”
Dir \\ex01\pst\*.pst | %{ New-MailboxImportRequest -Name RecoveredPST -BatchName Recovered -Mailbox $_.BaseName -FilePath $_.FullName -TargetRootFolder SubFolderInPrimary}

Watch the progress:
get-mailboximportrequest | get-mailboximportrequeststatistics | ft targetalias,percent*,bytestransferred

Clear completed imports:
get-mailboximportrequest -status completed | remove-mailboximportrequest

** The above will not import corrupted items nor duplicate emails.