Solved

exch2007 import/export commands

Posted on 2009-07-06
5
243 Views
Last Modified: 2012-05-07
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 ?
0
Comment
Question by:KratosDefense
  • 2
  • 2
5 Comments
 
LVL 27

Expert Comment

by:shauncroucher
ID: 24789252
This article should cover that:

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

Shaun
0
 

Author Comment

by:KratosDefense
ID: 24789276
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
 

Author Comment

by:KratosDefense
ID: 24790189
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
 
LVL 27

Accepted Solution

by:
shauncroucher earned 500 total points
ID: 24792338
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
 
LVL 65

Expert Comment

by:Mestha
ID: 24793114
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

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
NLB Exhange 2016 3 32
Moved to Outlook 2013 4 35
How do i move AD Contacts to O365? 2 30
memory size used for Exchange email used on Andriod 3 16
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
how to add IIS SMTP to handle application/Scanner relays into office 365.

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now