Toll Free: +1 888 900 4529 |   Toll Free: +44 800 088 5522

PowerShell to restore mailbox from Recovery Database in Exchange 2013

Robin Thomas | February 13th, 2015 | exchange 2013

PowerShell is one of the precious scripting language that is mostly used by the system administrator for the purpose of Task Automation. One can also use these PowerShell commands to restore mailboxes from recovery database as explained in the blog. Get –MailboxDatabase is the command used with its parameters to recover data from recovery database.

At first, check the recovery databases that are available there to perform the required operation by using the command shown below:

Now select the mailbox that you want to restore. In the example explained below, we have recovered the mailbox having name Joe Prior. Before performing the recovery operation, let’s check the mailbox is available or not by using the command given below.

ps2

The New –MailboxRestoreRequest command is used to perform the recovery of the database with his parameters. The parameters used are described below: –

1). Source Database

2). Source mailbox

3). Target Mailbox

PowerShell Command to restore items from the particular mailbox

The command is used to recover the data from a particular mailbox. For example, if Joe has lost all mails from the  sent items folder and want to recover his data back to send item folder than at first he need to send mailbox restore request. The command used to perform the operation is given below.

ps3

PowerShell Command to restore the data of entire mailbox

The command is used to recover the whole database, including all folders.

ps4

To send the request for restoring database the command is given below with additional parameter –AllowLegacyDNMisMatch. The additional parameter states that you are allowing restore process to occur.

ps5

PowerShell Command to restore the database to a different location: –

The command is used to restore the recovered mailboxes to a different location. You can use the command to check which data has been recovered during the recovery operation. One can specify the destination of the mailboxes using the TargetRootFolder command.

ps6

Conclusion

The New –MailboxRestoreRequest Command can be used to recover the database from the Recovery Storage Group. In this blog, We have discussed the method to recover the database using this command. In case if you are not able to recover data from Recovery Database, Please comment below, we will sort out your query as soon as possible.

The following two tabs change content below.

Robin Thomas

Robin Thomas is a technical writer. He wrote plenty of articles or blogs regarding Exchange server mailbox corruption problem and share its precise solution on Google Plus, Twitter and Facebook.