To recover deleted mail items in Exchange, an administrator can use Powershell commands and Exchange Admin panel according to understanding and working.
If Administrator wants to try Powershell commands to recover back emails files, then use the command:
Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq ‘UserMailbox’)} |
Set-Mailbox -SingleItemRecoveryEnabled $true -RetainDeletedItemsFor 30
Before that Enable the recovery of single items with the help of the following command:
Set-Mailbox -Identity “name of the user” -SingleItemRecoveryEnabled $true
Enable the single item recovery and set the retention period of the deleted item for any single user. The following command activates the recovery of the single item and sets the retention period of 30 days.
Set-Mailbox -Identity “name of the user” -SingleItemRecoveryEnabled $true -RetainDeletedItemsFor 30
Since more commands are used so you can refer to the link.
Here you find step by step commands and other precautions that need during recovering deleted items.