Issue : Import one PST into all the mailboxes in the Exchange Organization what I did was;
Resolution:
I have exported all the mailboxes alias names to .CSV file & run below command to Import the PST into the
mailbox aliases
Import-CSV \\mbx\PST\New.csv | Foreach{ New-MailboxImportRequest -Mailbox $_.Alias -FilePath \\mbx\PST\v2cal.pst}
After I ran above command, it was giving below error;
Cause : I was not added the user account which I was logged on Exchange cas server into the share where I had kept PST file, we need to give Full access to the share for that account.
Import-CSV \\mbx\PST\New.csv | Foreach{ New-MailboxImportRequest -Mailbox $_.Alias -FilePath \\mbx\PST\v2cal.pst}
Import-Csv : Cannot open file "\\mbx\PST\New.csv".
At line:1 char:11
+ Import-CSV <<<< \\mbx\PST\New.csv | Foreach{ New-MailboxImportRequest -Mailbox $_.Alias -FilePath \\mbx\PST\v2cal.ps
t}
+ CategoryInfo : OpenError: (:) [Import-Csv], UnauthorizedAccessException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.ImportCsvCommand
After changed the above settings, it's working fine.
In one-short am able to import one PST into all the mailboxes in my ORG.
User account which I am using its not added into the share where I had kept the PST file.
http://social.technet.microsoft.com/Forums/en-US/exchange2010/thread/c3ad4e47-1156-4ea6-b846-ec67815e0572 - link