Exchange 2013 import multiple pst’s

Here is a simple loop with which you can go through you all mailboxes you have and restore/import a pst.

1 `foreach ($i in (Get-Mailbox)) { New-MailboxImportRequest -Mailbox $i -FilePath "\\Server\share\$($i.Name).pst"; -baditemlimit 50 -acceptlargedataloss ;while ((Get-MailboxImportRequest -mailbox $i | ? {$\_.Status -eq "Queued"; -or $\_.Status -eq "InProgress"})) { sleep 120 } }` 

#PST files must be named accordingly - Mailbox name e.g. John.Doe - John.Doe.pst