MSExchangeGuru.com

Learn Exchange the Guru way !!!

 

Recover an Exchange 2010 Mailbox using DPM 2010

I just thought of sharing a cmdlet which every exchange pro should have handy wrt recovering an E2010 mailbox using DPM 2010

Prerequisites

•An RDB must be created.
•The database and log files containing the recovered data must be restored or copied into the RDB folder structure that was created when the RDB was created.
•The database must be in a clean shutdown state. Because an RDB is an alternate restore location for all databases, all restored databases will be in a dirty shutdown state. You can use Eseutil /R to put the database in a clean shutdown state.

Step 1

Create Restore location, I.e. D:\restore

Log onto mailbox server (or any of the Exchange 2010 servers), startup Exchange Management Shell and run the following command to create a Recovery Mailbox Database.

new-mailboxdatabase –recovery “recoverydb” -edbfilepath “D:\restore\NameOfDatabaseEDBFile.edb” –logfolderpath “D:\restore” –server ExchangeServerName

To check the database user contents run the following command
Get-MailboxStatistics –Database “RDB”

If you want to check the state of the database run the following command
eseutil /mh ‘.\Mailbox Database 0091898942.edb'”

Step 2

Log onto mailbox server (or any of the Exchange 2010 servers), startup Exchange Management Shell and run the following command to restore the user mailbox.

Restore-Mailbox -Identity jonand -RecoveryDatabase “RDB”

Confirm
Are you sure you want to perform this action?
Recovering mailbox content from mailbox ‘Jonas Andersson’ in the recovery database ‘RDB’ to the mailbox for ‘Jonas Andersson (Jonas.Andersson@testlabs.se)’. This operation may take a long time to complete.
[Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is “Y”):

This example bulk restores all the mailboxes in the mailbox database DB1 that are also present in the recovery database RDB.
Get-Mailbox -Database DB1 | Restore-Mailbox -RecoveryDatabase “RDB”


Swaminathan
Team@ MSExchangeGuru

2 Responses to “Recover an Exchange 2010 Mailbox using DPM 2010”

  1. ken Says:

    I believe there is a typo in your shell command to create the recovery database. You have new-mailboxdatabase –recovery “recoverydb” -ebfilepath. I think you left out the ‘d’ in -edbfilepath; it should be new-mailboxdatabase –recovery “recoverydb” -eDbfilepath

  2. Prabhat Nigam Says:

    Thank you Ken. We have updated the document.

Leave a Reply

ad

Categories

Archives