Knowledge Base Home

Call Support

Search the Knowledge Base

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added how to do all the users. and the link to the MS article for O365.


Set-Mailbox -Identity "MBX01" -SingleItemRecoveryEnabled $True -RetainDeletedItemsFor 30

To set the for all users you can use:

Get-Mailbox -ResultSize unlimited -Filter {(RecipientTypeDetails -eq 'UserMailbox')} | Set-Mailbox -SingleItemRecoveryEnabled $True -RetainDeletedItemsFor 30

Note: The retention period can be set to any length of time. However, if you want to retain deleted items for longer than 30 days in O365, the mailbox must have an Exchange Online (Plan 2) user license.


Enable Single Item Recovery for a Mailbox:

Change how long permanently deleted items are kept for an Exchange Online mailbox:

Include Page