Import PST Files into Exchange 2010 SP3

Hi there,

I've got about 50 .PST files that need to be imported into different users mailbox's that is on an Exchange 2010 SP3 server, whats the best way to import them?   I take it via PowerShell is the only way?

If so is the best command to use something like this :-

New-MailboxImportRequest -Mailbox USERNAME -IsArchive -FilePath \\PATHTOPST\PSTTOIMPORT.PST

If that is correct what would you say is a safe amount of imports to do at once?  The total amount of data to import will be about 40GB as well.

Thanks for any help :)
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Will SzymkowskiSenior Solution ArchitectCommented:
I would personally be doing this in batches. Yes you can used powershell to script this. See the below command...

Before you run this command you will need to ensure that you have the proper permissions assigned to your account.
New Management Role Assignment
New-ManagementRoleAssignment -Name "Import Export_Enterprise Support" -SecurityGroup "Enterprise Support" -Role "Mailbox Import 

Open in new window

$List = import-csv "c:\filename.csv"
ForEach ($User in $List) {
New-New-MailboxImportRequest -Mailbox $User.UserMailbox -IsArchive -FilePath \\PATHTOPST\$User.PSTFile.PST

Open in new window

You need to construct your CSV link below...
UserMailbox                  PSTFile
msmith                                pst1.pst
mdowns                              pst2.pst

Once the script has completed you can use Get-MailboxImportRequest, to view all of the import status.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
AmitIT ArchitectCommented:
Ya, Powershell is the easy way. Command is correct. Cross check from MS KB below. You can run the command for all user, rest Exchange will do it at the backend.

View the status:

Remember you might see failures during import, if there are corrupt items, default is 50 from EMS, above it, you need to pipe -acceptlargedataloss in your command.
Jamie786Author Commented:
Thanks for that Will I'll look at building the CSV file, would make life a lot easier!  I take it that if I want to import the current CSV mails with the same folder structure do I have to add any switches?  Also this isn't an archive mailbox its a live mailbox so is the -IsArchive switch needed?
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Will SzymkowskiSenior Solution ArchitectCommented:
Also this isn't an archive mailbox its a live mailbox so is the -IsArchive switch needed?

That is correct. I was just using your example.

Just remove it from the script.

Jamie786Author Commented:
Perfect, thank you for that I'll be doing the import on Saturday so will prepare with your script today and hopefully give it a go!
Jamie786Author Commented:
worked perfectly!
Robinsan ShawFreelancer BloggerCommented:
No, Not only the Powershell command method is the Single method to import PST File into Exchange Server. You can try the Demo version of Exchange Import Software that perfectly imports PST File Mailbox Data into Exchange Server 2016, 2013, 2010 and below version in Bulk.

To know more about the software visit the helpful link: Import PST File to Exchange 2010

Thanks & Regards
Robinsan shaw
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.