exch2007 import/export commands

Guys how can I export/import  multiple users mailboxes to a .pst file without exporting the entire mailbox store or doing one mailbox at a time?
Can you provide a command shell example that will export multiple users ?
KratosDefenseAsked:
Who is Participating?
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.

shauncroucherCommented:
This article should cover that:

http://msexchangeteam.com/archive/2007/04/13/437745.aspx

Shaun
0
KratosDefenseAuthor Commented:
I've read this article. It does not give any examples for exporting multiple users at one time. Can you provide an example of how to do this? Do we need to create a .csv file with the users aliases that the script will call upon to determine which users to export?

0
KratosDefenseAuthor Commented:
Guys how can I export/import  multiple users mailboxes to a .pst file without exporting the entire mailbox store or doing one mailbox at a time?
Can you provide a command shell example that will export multiple users ?

Im also finding out that when I export a mailbox to a pst the the pst size is increased by up to 50% of the mailbox size and above. For example, I exported a mailbox that was 750mb. The pst for it was 1.8gb. Why does this happen and how can I avoid these large pst files? Im need to import these pst into another exchange 2007 server and Im afraid the large pst are going to cause problems.
Suggestions?
0
shauncroucherCommented:
My understanding is that it is normal for the PST's to be larger than the mailbox sizes. You will lose the single instance nature of storing attachments etc when exporting the mailboxes. In Exchange, when there are multiple recipients in the same database receiving an email containing an attachment, only one attachment is stored for all the users. When you export to PST, all the mailboxes have a copy of the attachment and therefore you get a certain level of bloating. I do not believe this is avoidable in my experience.

For th scripts (note these are untested so try on a test server first, but should do what you require)


First create a CSV called users.csv with the following:

Identity column containing list of mailbox identities for export
PSTPath column containing the full path (and filename if you wish).

Exporting to PST.

Import-csv users.csv | foreach {
 Export-Mailbox -Identity $_.Identity -PSTFolderPath $_.PSTPath
}

Importing to Mailbox.

Import-csv users.csv | foreach {
 Import-Mailbox -Identity $_.Identity -PSTFolderPath $_.PSTPath
}


If you omit the filename in the PSTPath column, it will save the PST as
the mailbox alias. The destination server mailboxes will then need to
have the same alias as the match is done by matching PST name to mailbox alias.

Shaun
0

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
MesthaCommented:
PST files bloat - the bloat can be anything up to three times or more. That is because they use a different structure to store the email - basically the email is stored in all three formats within the PST file.

Simon
0
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
Exchange

From novice to tech pro — start learning today.