Export a Mailbox located in specific Database to pst file

Export a Mailbox located in specific Database to pst file

I have a user that has mailbox in the database MB1 and in the RecoveryDB
I would like to export his mailbox that is located in RecoveryDB to pst file

how do I specify in powershell that the export should occur on the user mailbox located on RecoveryDB and not from MB1

Any help will be very much appreciated.

Thanks
jskfanAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
David Paris VicenteConnect With a Mentor Systems and Comunications  Administrator Commented:
The username to where you want export has to become on the first switch, of the cmdlet.

SO if the user name to where you want to export  is equal to  TestRecoveryMB, this username has to be on the first identity switch.

So let me know if worked for you.

Regards.
0
 
David Paris VicenteConnect With a Mentor Systems and Comunications  Administrator Commented:
Hi jskfan.
 
I don't believe you can export data from a mailbox in a recover database to a PST file only to a target mailbox or target folder within a mailbox. At least with Exchange 2007 and 2010.

 
You can see some other process here:
Restore MB exchange 2007 and 2010

Let us know.


Regards
0
 
jskfanAuthor Commented:
so if I have a folder in my Outlook... I can export mailbox of a different user to a folder in my outlook?
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
jskfanAuthor Commented:
I ran this and it shows the status Queued
New-MailboxExportRequest -Mailbox AylaKol -FilePath \\MBX-01\PSTFileShare\Ayla_Recovered.pst
0
 
David Paris VicenteConnect With a Mentor Systems and Comunications  Administrator Commented:
If I were you, I create a Dummy account and restore to that account, and by this way if anything goes wrong you dont mess with an production account that is working.

But take a look first on the link that I mention and see the step by step.

This is my opinion.


Regards
0
 
jskfanAuthor Commented:
I see...
the export to pst file is in progress,, but I am afraid the export is not from the Recovery Database, it is going from the user live mailbox to pst file...
I wonder if I can import back the pst to the database... OR does the mailbox still stays on the mailbox when the pst of it is exported?
0
 
David Paris VicenteConnect With a Mentor Systems and Comunications  Administrator Commented:
I didn´t see your last post, because I was writing.

And what happen? Became stuck or finished with success?
0
 
David Paris VicenteConnect With a Mentor Systems and Comunications  Administrator Commented:
You should have use something similar to this:

This example restores John's mailbox content into Scott's mailbox under the Recovery folder.

Restore-Mailbox -Identity Scott -RecoveryDatabase MyRecoveryDatabase -RecoveryMailbox John -TargetFolder Recovery

You can import wit:New-MailboxImportRequest -FilePath \\path\filename.pst -Mailbox john.smith

 but normaly nothing happens to the mailbox on the server:
0
 
Swapnil NirmalManager, Audit AnalyticsCommented:
This might help:
exchangeserverpro.com/restore-individual-mailbox-exchange-2010/
0
 
jskfanAuthor Commented:
**** Restore-Mailbox -Identity Scott -RecoveryDatabase MyRecoveryDatabase -RecoveryMailbox John -TargetFolder Recovery

the command example above might work when Scott as well as john mailboxes are both in the same database MyRecoveryDatabase

in my case Scott is in the RecoveryDatabase and John is in ProDatabase

at this point, Scott has a live mailbox in database MBDB1, and another mailbox in the recovery database. the mailboxes have the same name, so if I need to do any restore I need to specify the database Recovery database otherwise it will do restore from MBDB1

So what's the command to specify the restore from Scott mailbox located in RecoveryDB to John mailbox located in MBDB1, Hopefully this will not merge their emails together.

OR if there is a way to export Scott mailbox located in Recovery database to pst, then I can import the pst file to John mailbox, this way it will show as a separate folder.
0
 
David Paris VicenteConnect With a Mentor Systems and Comunications  Administrator Commented:
Like I said "I don't believe you can export data from a mailbox in a recover database to a PST file only to a target mailbox or target folder within a mailbox. At least with Exchange 2007 and 2010."

Suggestion, create a a test mailbox. open this mailbox in OWA or Outlook, create a folder and named Recover.
Then use the cmdlet: Restore-Mailbox -Identity Test -RecoveryDatabase MyRecoveryDatabase -RecoveryMailbox Scott -TargetFolder Recovery.

The test mailbox is equivalent to Johns mailbox on MBDB1 if this work it out and the result is exactly what you want to do, then you can change the -Identity "Test" to -Identity "John".

But do this first with a test mailbox, by this way you have sure that you don´t mess with a user mailbox in production until you have certain if the result is the expected.

Regards
0
 
jskfanAuthor Commented:
I will try it and give you feedback
0
 
jskfanAuthor Commented:
Just tested it created TestRecoverMB mailbox with the folder named recovery..
I run this command you posted above and got error, I am not sure why it did not work.

Restore-Mailbox -Identity User1 -RecoveryDatabase RecoveryDB -RecoveryMailbox TestRecoveryMB -TargetFolder Recovery

Mailbox "TestRecoveryMB" doesn't exist on database "RecoveryDB"

it does not find TestRecoveryMB because it is in a different database. That's what I want to achieve, the User1 mailbox is in Recovery database mailbox and want to restore it to TestRecoveryMB mailbox in different database
0
 
jskfanAuthor Commented:
I guess I made a mistake...I am working on it now
0
 
David Paris VicenteConnect With a Mentor Systems and Comunications  Administrator Commented:
Restore-Mailbox -Identity Test -RecoveryDatabase MyRecoveryDatabase -RecoveryMailbox Scott -TargetFolder Recovery.

Open in new window


Restore-Mailbox -Identity User1 -RecoveryDatabase RecoveryDB -RecoveryMailbox TestRecoveryMB  <- this is the username of the user test mailbox -TargetFolder Recovery
0
 
jskfanAuthor Commented:
That 's what i did initially..
Restore-Mailbox -Identity User1 -RecoveryDatabase RecoveryDB -RecoveryMailbox TestRecoveryMB  <- this is the username of the user test mailbox -TargetFolder Recovery

but when I switched it this way:
Restore-Mailbox -Identity TestRecoveryMB -RecoveryDatabase RecoveryDB -RecoveryMailbox User1 -Targetfolder Recovery  

it started working
0
 
jskfanAuthor Commented:
The one thing I noticed it copies the emails to TestRecoveryMB, into the Recovery folder as well as to the main mailbox.
because it is copying them to the Unread folder of the main Mailbox
0
 
jskfanAuthor Commented:
Though I believe it should be normal that under:
 - Favorites
 - inbox
 - Unread Mail (number of unread emails is incrementing)

under TestRecoveryMB (nothing in the folders)
-inbox
- Drafts
- Sent items
-deleted items
-Junk emails
-notes

Recovery
 Top Information Store
 Deleted items (numbers incrementing now)
 drafts
 inbox (numbers incrementing now)
0
 
jskfanAuthor Commented:
just sent a test email to TestRecoveryMB, I noticed the Unread emails that have been exported to Recovery Folder and the email I sent both show up together in the Unread mail folder
0
 
jskfanAuthor Commented:
Excellent...Thanks for your help
0
 
David Paris VicenteSystems and Comunications  Administrator Commented:
I´m glad to help.

Cheers
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.

All Courses

From novice to tech pro — start learning today.