Link to home
Start Free TrialLog in
Avatar of mk9
mk9Flag for Afghanistan

asked on

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
Avatar of Ogandos
Ogandos
Flag of Canada image


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



Avatar of mk9

ASKER

Doesnt like it, says New-MailboxRestoreRequest is not recognised as the name of a cmdlet

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



Avatar of mk9

ASKER

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



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

Avatar of mk9

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Ogandos
Ogandos
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial