Skip to content

Commit 2b25dea

Browse files
authored
Merge pull request MicrosoftDocs#8633 from jprknight/patch-1
Update New-MailboxRestoreRequest.md
2 parents ae0c2b4 + bb9732f commit 2b25dea

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

exchange/exchange-ps/exchange/New-MailboxRestoreRequest.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,6 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
222222

223223
### Example 1
224224
```powershell
225-
Get-Mailbox -SoftDeletedMailbox "User Name" | Format-List ExchangeGUID
226-
New-MailboxRestoreRequest -SourceMailbox "ExchangeGUID" -TargetMailbox "User Name" -AllowLegacyDNMismatch
227-
```
228-
229-
In Exchange Online, this example uses the Get-Mailbox cmdlet to find the ExchangeGUID value of the mailbox, which is required to restore the mailbox contents.
230-
231-
### Example 2
232-
```powershell
233225
Get-MailboxStatistics -Database MBD01 | Where {$_.DisconnectReason -eq "SoftDeleted" -or $_.DisconnectReason -eq "Disabled"} | Format-List LegacyExchangeDN,DisplayName,MailboxGUID, DisconnectReason
234226
New-MailboxRestoreRequest -SourceDatabase "MBD01" -SourceStoreMailbox 1d20855f-fd54-4681-98e6-e249f7326ddd -TargetMailbox Ayla
235227
```
@@ -238,7 +230,7 @@ In on-premises Exchange, this example uses the Get-MailboxStatistics cmdlet to r
238230

239231
Using this information, the source mailbox with the MailboxGUID value 1d20855f-fd54-4681-98e6-e249f7326ddd is restored to the target mailbox that has the Alias value Ayla.
240232

241-
### Example 3
233+
### Example 2
242234
```powershell
243235
New-MailboxRestoreRequest -SourceDatabase "MBD01" -SourceStoreMailbox "Tony Smith" -TargetMailbox [email protected] -TargetIsArchive
244236
```
@@ -509,6 +501,8 @@ The AllowLegacyDNMismatch switch specifies that the operation should continue if
509501
510502
By default, this cmdlet checks to make sure that the LegacyExchangeDN on the source physical mailbox is present on the target user in the form of the LegacyExchangeDN or an X500 proxy address that corresponds to the LegacyExchangeDN. This check prevents you from accidentally restoring a source mailbox into the incorrect target mailbox.
511503
504+
**Note**: This parameter is being deprecated in the cloud-based service. To complete a mailbox restore request for mailboxes with a LegacyExchangeDN that doesn't match, you need to obtain the LegacyExchangeDN value for the source mailbox and add it to the target mailbox as an X500 proxy address. For detailed instructions, see [Restore an inactive mailbox](https://docs.microsoft.com/microsoft-365/compliance/restore-an-inactive-mailbox#restore-inactive-mailboxes).
505+
512506
```yaml
513507
Type: SwitchParameter
514508
Parameter Sets: (All)

0 commit comments

Comments
 (0)