A powershell command to restore a mailbox from RDB in exchange 2010 sp1?

Hi Guys,

I need a powershell command to restore a single mailbox from RDB in exchange 2010 sp1. I have created an RDB and it is currently unmounted. I am reluctant to try and mount the RDB on the live server...

Anyone can help?

Thanks
m
mk9Asked:
Who is Participating?
 
Schnell SolutionsSystems Infrastructure EngineerCommented:

Yes, it is possible, you can add the switch "-IncludeFolders" and them specify the folder

You just need to complete your command like this...

Restore-Mailbox -Identity "user" -RecoveryDatabase RecoverDC -RecoveryMailbox "user" -TargetFolder Restore -IncludeFolders "\Sent Items"


 
0
 
Schnell SolutionsSystems Infrastructure EngineerCommented:

If the Identity of your sinble mailbox is "Example Mailbox" with an email address example@lab.com and the name of your recovery database is "RDB" you can use this CMDLet:

New-MaiboxRestoreRequest -SourceDatabase "RDB" -SourceStoreMailbox "Example Mailbox" -TargetMailbox example@lab.com



0
 
mk9Author Commented:
Doesnt like it, says New-MailboxRestoreRequest is not recognised as the name of a cmdlet
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
Schnell SolutionsSystems Infrastructure EngineerCommented:

Hello Mk9,

It is absolutly a cmdlet in Exchange 2010, I use it all the time. Be aware that you are using the Exchange Management Shell and not PowerShell, notice also if there is an error when the Exchange Mangement Shell loads



0
 
mk9Author Commented:
Still the same error. Could it be because the cmdlet in Exchange 2010 is pointing to C:\windows\system32 ?

Do i need to mount RDB first? if so, what are the implications of doig so?

thanks

m


0
 
Schnell SolutionsSystems Infrastructure EngineerCommented:

It is normal that EMS loads pointing by default in C:\windows\system32, that is not a problem

Let's confirm than that module is available in your system, please, run this command and let me know the result

Get-Command *restore*

If the Exchange modules are loading correctly It shall appear a list of commands, including the recover function called "New-MailboxRestoreRequest"

If you don't see the command in the list, it means that the module is not charged in the console because an internal problem or because you don't have the correct permissions. EMC works based on Role Base Authentication, if you don't have the necessary permissions, the command won't appear for the used account

0
 
mk9Author Commented:
Thanks, schnellsolutions. Making progress, but the mailbox is very large. Is it possible just to recover the Sent Items folder? if so, could you please adjust the cmdlet below?

Restore-Mailbox -Identity "user" -RecoveryDatabase RecoverDC -RecoveryMailbox "user" -TargetFolder Restore

cheers

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