Exchange 2010 SingleItemRecoveryEnabled Option
The Following Code turns on SingleItemRecoveryEnabled for the users who are set to "$false" or don't have it enabled already.
It ignores the DiscoverySearchMailbox, postmaster, and if you have an Journaling account. I target two mailbox servers
as a way to ignore other users on non-2010 servers.
Get-Mailbox -ResultSize Unlimited |
Where { $_.SingleItemRecoveryEnabled -eq $false -and ($_.ServerName -like "mailbox1" -or $_.ServerName -like "mailbox2" )
-and $_.Alias -notlike "DiscoverySearch*" -and $_.Alias -ine "postmaster" -and $_.Alias -ine "Journal" }
| set-mailbox -SingleItemRecoveryEnabled $true
It's really annoying that this isn't in the GUI controls
See the current status of "SingleItemRecoveryEnabled" on a user:
#Show all status report
Get-Mailbox $user | select name, singleitemrecoveryenabled
#Show only disabled
Get-Mailbox $user | Where { $_.SingleItemRecoveryEnabled -eq $false | select name, singleitemrecoveryenabled
Set the retention of deleted items on a Database:
Set-MailboxDatabase -Identity MYDATADB -DeletedItemRetention 365
Other Options:
-RetainDeletedItemsFor ( The can be set per mailbox, or at the policy level for the database )
-RecoverableItemsWarningQuota
-RecoverableItemsQuota ( Can be set for mailbox or database )
Calendar items are maintained held for 120 days regardless.
Other retention options include litigation hold which is for Court Cases etc which basically removed item
expirations until removed from the mailbox.
For More Great information on this Subject: http://msexchangeteam.com/archive/2009/09/25/452632.aspx