Searching...
Tuesday, 31 May 2016

Restore Exchange 2016 Mailboxes with "New-MailboxRestoreRequest"

There are several ways to restore mailboxes (soft-deleted, disabled or disconnected) in Exchange server 2016. Either you can restore mailbox using Windows server backup, with recovery database,  or using Exchange server cmdlets New-MailboxRestoreRequest.
As per the need administrators choose different methods to restore the database, in which few methods are very straightforward and some require expertise.

So here in the blog post I'll walk you through the steps to restore disconnected mailboxes back to the Exchange server using the PowerShell cmdlets. The newer cmdlet New-MailboxRestoreRequest is only available in on-premises Exchange server 2016 and cloud-based service, so make sure you’re testing the cmdlet in Exchange 2016, not in older version. 

However, there is a utility as well which lets you to restore disconnected, deleted (offline) mailboxes to Exchange server in the easiest way. Try the edb converter tool by Stellar and restore the disconnected database and deleted mailboxes to Exchange server 2016.

Let's move to the manual method to restore mailboxes if you wish to try out the command. But before running the cmdlet in the console, it is necessary to understand how to start the process using New-MailboxRestoreRequest.

This cmdlet moves the mailboxes objects from the disabled, soft-deleted, or mailbox lies in a recovery database into a connected mailbox.

So let’s take some examples and see how to execute the command-

You need to provide DisplayName, LegacyDN, or MailboxGUID to create a mailbox restore request for disconnected mailboxes. The below command returns all the entities (DisplayName, LegacyDN, MailboxGUID) for all mailboxes on database DB00 that have a disconnect reason of Disabled or Soft Deleted.

Get-MailboxStatistics -Database DB00 | Where { $_.DisconnectReason -eq "SoftDeleted" -or $_.DisconnectReason -eq "Disabled" } | Format-List LegacyDN, DisplayName, MailboxGUID, DisconnectReason

You can pick the MailboxGUID from the output screen and use this with the cmdlets to restore mailbox to target mailbox user. 

In the below example I am using MailboxGUID 7f10564f-hf98-5971-12g8-c369f7326ipl to restore the source mailbox on database DB00 to target mailbox John.

New-MailboxRestoreRequest -SourceDatabase "DB00" -SourceStoreMailbox 7f10564f-hf98-5971-12g8-c369f7326ipl  -TargetMailbox John

In the below example I'm restoring source mailbox content with the DisplayName of John Wick on database DB00 to the archive mailbox for john@myexchange.com

New-MaiboxRestoreRequest -SourceDatabase "DB00" -SourceStoreMailbox "John Wick" -TargetMailbox John@myexample.com –TargetIsArchive

So as you can see disconnected mailbox restore for Exchange 2016 is a simple job using PowerShell. If you want to customize the command with different parameters, check here on TechNet blog.

In addition, you can also check below other posts related Exchange server 2016:

•  Repair Corrupt Exchange 2016 Mailbox: New-MailboxRepairRequest
•  How to Recover Deleted Mailbox items in Exchange 2016
•  How to Export Exchange 2016 Mailboxes to PST – PowerShell

That’s it!

If you have further queries related Exchange 2016 mailbox repair, recovery, restore, or backup, post your words in the comment box. I’ll try to answer you asap!

0 comments:

Post a Comment