Exchange Server 2010/2013 – Deleted Item retention

Microsoft Exchange

Set Deleted Item retention period for all databases

Get-MailboxDatabase | Set-MailboxDatabase -DeletedItemRetention 35

 

Enable retention period per mailbox

get-mailbox -RecipientType ‘UserMailbox’ | Set-Mailbox -SingleItemRecoveryEnabled $true