• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 484
  • Last Modified:

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 :)
0
Jamie786
Asked:
Jamie786
1 Solution
 
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 
Export"

Open in new window


$List = import-csv "c:\filename.csv"
ForEach ($User in $List) {
$User.UserMailbox
$User.PSTFile
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
etc.

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

Will.
0
 
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.


https://technet.microsoft.com/en-in/library/ff459261(v=exchg.141).aspx

View the status:
https://technet.microsoft.com/en-us/library/ff607427(v=exchg.141).aspx

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.
0
 
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?
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
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.

Will.
0
 
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!
0
 
Jamie786Author Commented:
worked perfectly!
0
 
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now