Import a PST file to a mailbox using PowerShell

Today I have been asked to import mail from a PST file into an existing mailbox in Exchange.  Fortunately this is nice and easy using the New-MailboxImportRequest PowerShell cmdlet.  Here is an example of how to use it:

New-MailboxImportRequest -Mailbox dave@webbworld.local -FilePath \\WW-EX-01\PSTs\Dave.PST

Note: the FilePath parameter must be specified as a UNC path

The import request will then be placed into a queue and progress can be monitored using the Get-MailboxImportRequestStatistics cmdlet:

Get-MailboxImportRequest | Get-MailboxImportRequestStatistics

[BlogBookmark] [Blogsvine] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [LinkedIn] [MySpace] [Reddit] [Slashdot] [StumbleUpon] [Twitter] [Windows Live] [Yahoo!] [Email]