- Sign in to the Microsoft 365 admin center using your admin credentials.
- Navigate to the Exchange admin center.
- In the Exchange admin center, go to the recipients tab and select mailboxes.
- Find the user's mailbox that contains the deleted email item and click on it.
- Under the mailbox properties section, select the "..." option and then select "Recover deleted items".
- A dialog box will appear showing the deleted items that can be recovered. Select the email item that needs to be recovered and click on "Recover".
- A message will appear asking for confirmation to recover the item. Click on "OK" to recover the item.
- The recovered item will be restored to the original folder in the user's mailbox.
Note: The ability to recover deleted items may depend on your organization's retention policies and the length of time since the item was deleted. If the item was permanently deleted, it may not be recoverable.
#Powershell
- Connect to Exchange Online PowerShell using your admin credentials.
- Run the following command to get a list of all the mailboxes that have deleted items:
Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox"} | Get-MailboxFolderStatistics -FolderScope RecoverableItems | Where-Object {$_.DeletedItemCount -gt 0} | Select-Object Identity - From the list generated in step 2, identify the mailbox containing the deleted email item that you want to recover.
- Run the following command to recover the deleted email item:
New-MailboxRestoreRequest -SourceMailbox "MailboxName" -SourceStoreMailbox "MailboxName" -TargetFolder "RecoveredMessages" -ContentFilter {(Received -lt 'DateOfDeletion')} -AllowLegacyDNMismatch
Replace "MailboxName" with the name of the mailbox that you want to recover the deleted email item from. Replace "DateOfDeletion" with the date the email item was deleted. - After the command completes, the recovered email item will be located in the "RecoveredMessages" folder of the mailbox that was specified in the command.
No comments:
Post a Comment