User Account is already deleted in AD.
User Mailbox is already deleted in Exchange.
Exchange Online Mailbox Restoration

1. Connect to Exchange Online service in Windows PowerShell command line.

$UserCredential = Get-Credential
Exchange Online Mailbox Restoration

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Exchange Online Mailbox Restoration

Import-PSSession $Session -DisableNameChecking
Exchange Online Mailbox Restoration

Exchange Online Mailbox Restoration

 

2. Restore mailbox with InactiveMailboxOnly parameter.

$InactiveMailbox = Get-Mailbox -InactiveMailboxOnly -Identity <identity of inactive mailbox>

New-MailboxRestoreRequest -SourceMailbox $InactiveMailbox.DistinguishedName <-SourceIsArchive> -TargetMailbox targetaccount@contoso.com -TargetRootFolder "TargetUser_Restored01" -AllowLegacyDNMismatch

 

3. Check status of mailbox restoration.

Get-MailboxRestoreRequest -TargetMailbox targetaccount
Exchange Online Mailbox Restoration

 

4. Check restored mails in target mailbox.

Get-MailboxFolderStatistics -Identity targetaccount | select Name, FolderPath, FolderSize | Format-Table -AutoSize
Exchange Online Mailbox Restoration

 

相关文章:

  • 2021-09-09
  • 2021-11-17
  • 2021-11-17
  • 2021-05-25
  • 2021-12-09
  • 2021-06-28
  • 2021-09-17
  • 2021-08-22
猜你喜欢
  • 2021-11-19
  • 2021-12-18
  • 2021-09-19
  • 2021-09-18
  • 2021-12-22
  • 2021-06-29
  • 2021-11-02
相关资源
相似解决方案