Monday, March 8, 2010

Exchange Server 2007: How to Import PST Files into Mailboxes

Exchange Server 2007: How to Import PST Files into Mailboxes

:
  1. Download and install Windows PowerShell onto a 32-bit workstation.
  2. Download the 32-bit version of Exchange Server and install the management tools.
  3. Install and configure Outlook 2003 SP-2 or later.
  4. If the PST files are on a network share, then map a drive letter to the share and folder, such as P:\PSTFiles
  5. Grant Send-As and Receive-As rights to the user who is doing the importing.
    Run the following command from the Exchange Management Shell, replacing the "My" variables with the correct values. The command should be on a single line of next, not wrapped as it likely appears below.

    Get-MailboxDatabase -identity "\First Storage Group\Mailbox Database" | Add-ADPermission -user "\" -ExtendedRights Receive-As, Send-As
  6. To import a single mailbox, replace the value of UserAccountName as needed and run the following command:

    Import-Mailbox -Identity UserAccountName -PSTFolderPath P:\PSTFiles
  7. To import ALL the mailboxes in a folder:

    Get-Mailbox -Database '\First Storage Group\Mailbox Database' | Import-Mailbox -PSTFolderPath P:\PSTFiles

Source: http://www.fieldbrook.net/TechTips/Exchange/ImportMailboxes2007.asp

No comments: