Solved

Exchange 2007 - export large mailbox data to PSTs using date range

Posted on 2013-05-30
3
1,579 Views
Last Modified: 2013-05-30
Hi there -

I have an Exchange 2007 sp3 environment.  I have a journaling mailbox that is very large (huge).  I'm attempting to export the database (journal mailbox) into date range PSTs so I can import them into an email archiver unit.  I am trying to use this command -

Get-Mailbox -Database 'MDB' | Export-Mailbox -PSTFolderPath D:\PSTs -StartDate 1/1/2010 -EndDate 12/1/2010

I have the Exchange management tools (32-bit) installed on a Windows 7 machine with Outlook 2007 (per the requirement) but am getting errors in the Exchange Management Shell.

Question, does the database have to to mounted in order to use the export tool above?

The error I'm getting indicates it cannot find the database.  I have mapped a network drive to the journal database, so that my command would look something like this -

Get-Mailbox -Database v:\journalstoragegroup\journaldatabase.edb | Export-Mailbox -PSTFolderPath D:\PSTs -StartDate 1/1/2010 -EndDate 12/1/2010

It gives me an error indicating it cannot find the DB.

Can someone tell me what parameters or format I'm missing to start using this tool?
0
Comment
Question by:ASD_IT
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
jbvernej earned 500 total points
ID: 39208401
hello,

YES, the Exchange database  HAS TO BE mounted to do an Export to a PST.
You can ONLY "read" data in EDB file while Information Store 's service is running and database is mounted

-Database can't be a physical path of database file. It must be a logical name from inside Exchange.

If error is database not found, run a simply "Get-MailboxDatabase" to have the exact name of the database (you have made some typo mistake perhaps). And then rerun the command to export.

Here is the syntax documentation from MS:
http://technet.microsoft.com/en-us/library/aa998579%28v=exchg.80%29.aspx
0
 

Author Comment

by:ASD_IT
ID: 39208582
Hi there,


Thank you for your response.  We will mount the database and try again.  Clarifying question on the command, from the Win7 32-bit machine, would the command look more like this -

Get-Mailbox -Database 'journaldatabase.edb' | Export-Mailbox -PSTFolderPath D:\PSTs -StartDate 1/1/2010 -EndDate 12/1/2010

When I issued the command above, it couldn't find the database - I'm wondering if I need to do something like this -

Get-Mailbox -Database 'FQDN_OF_Exchange_Mailbox-server\journaldatabase.edb' | Export-Mailbox -PSTFolderPath D:\PSTs -StartDate 1/1/2010 -EndDate 12/1/2010

Do I need the quotes?
0
 

Author Closing Comment

by:ASD_IT
ID: 39208680
Thank you for your expert help, this information provided was enough for me to get the tool going.

Again - thanks.
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

This is a fairly complicated script that will install the required prerequisites to install SCCM 2012 R2 on a server.  It was designed under the functional model in order to compartmentalize each step required, reducing the overall complexity.  The …
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

867 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

15 Experts available now in Live!

Get 1:1 Help Now