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.
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
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.
The command is used to recover the whole database, including all folders.
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.
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.
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.