Litigation Hold, Purges, Deletions, Dumpster CMDlets

Create a Litigation Hold Mailbox
New-Mailbox -Name Alias -Discovery

Get all discovery mailboxes in your organization
Get-Mailbox -Resultsize unlimited -Filter {RecipientTypeDetails -eq “DiscoveryMailbox”}

Give permissions to open a discovery mailbox and to access the results of a mailbox search
Add-MailboxPermission user@domain.com -User “domainuser” -AccessRights FullAccess

Remove Mailbox from organization
Remove-Mailbox -Identity user@domain.com

Get size of Recoverable items for user
Get-MailboxFolderStatistics “user@domain.com” -FolderScope RecoverableItems | Format-List Name,FolderAndSubfolderSize

Get amount of Data currently being used by items in Litigation Hold
Get-ExchangeServer | Get-MailboxStatistics | where {$_.ObjectClass -like “Mailbox, UserDisabled”} | where-object {($_.TotalDeletedItemSize)} | select DisplayName, TotalDeletedItemSize | export-csv TotalDeletedItemsSize_0813.csv
To check Recoverable Items folder size for all mailboxes on litigation hold:
Get-Mailbox -ResultSize Unlimited -Filter {LitigationHoldEnabled -eq $true} | Get-MailboxFolderStatistics –FolderScope RecoverableItems | Format-Table Identity,FolderAndSubfolderSize -Auto

Get a Count of Mailboxes with Litigation Hold Enabled
(Get-Mailbox -ResultSize Unlimited -Filter {LitigationHoldEnabled -eq $true}).count

This command sets the Recoverable Items Warning Quota and Recoverable Items Quota for a mailbox to 40 GB and 50 GB:
Set-Mailbox “Mailbox User” –RecoverableItemsWarningQuota 40GB –RecoverableItemsQuota 50GB

This command retrieves all mailboxes places on litigation hold by User after 8/14/2010
Get-Mailbox –Filter {LitigationHoldEnabled –eq $true –and LitigationHoldDate –gt “8/14/2010” –and LitigationHoldOwner “User”} | ft Name,Litigation*

Once you’ve examined the list of mailboxes returned by the above command, you can start the Mailbox Folder Assistant to process them
Get-Mailbox -identity ‘Discovery Search Mailbox’ | Start-ManagedFolderAssistant

Set Recoverable Items Parameters on Mailbox
Set-Mailbox “user@domain.com” –RecoverableItemsWarningQuota 50GB –RecoverableItemsQuota 60GB

Set Recoverable Items Parameters on Mailbox Database
Set-MailboxDatabase -Identity EX10mbx25 -RecoverableItemsWarningQuota 80GB -RecoverableItemsQuota 90GB

Get amount of Data currently being used by items in Litigation Hold TOTAL
Get-ExchangeServer | Get-MailboxStatistics | where {$_.ObjectClass -like “Mailbox, UserDisabled”} | where-object {($_.TotalDeletedItemSize)} | select DisplayName, TotalDeletedItemSize | export-csv file.csv

Get amount of Data currently being used by items in Litigation Hold per Database
Get-MailboxDatabase –identity EX10mbx01 | Get-MailboxStatistics | where {$_.ObjectClass -like “Mailbox, UserDisabled”} | where-object {($_.TotalDeletedItemSize)} | select DisplayName, TotalDeletedItemSize

The value ‘TotalDeletedItemSize’ returns the mailbox dumpster size.

To view how much space is consumed by all users dumpster files run this command:
Get-MailBox | Get-MailboxStatistics | select DisplayName,TotalDeletedItemSize

To view an individuals TotalDeletedItemSize, run this command:
Get-MailboxStatistics <alias> | select DisplayName,TotalDeletedItemSize

To view how much white space / available space is in your database run this command:
Get-MailboxDatabase -Status | Sort-Object DatabaseSize -Descending | Format-Table Name, DatabaseSize, AvailableNewMailboxSpace

The idea now is to forcefully delete the TotalDeletedItemSize to increase the AvailableNewMailboxSpace in your mailbox databases.

For this we will use the Search-Mailbox command with the -SearchDumpsterOnly-DeleteContent switch.

This will delete all dumpster items from the users mailbox, which means the user will not be able to retrieve these items form Recover Deleted Items in Outlook
Search-mailbox -identity <alias> -SearchDumpsterOnly -DeleteContent

Forcing a retention policy to run in Exchange 2010
Start-ManagedFolderAssistant -Identity “Administrator”

The entire server:
Start-ManagedFolderAssistant

Then enter your servername for the identity when prompted.

Items in the Recoverable Items folder are retained for the deleted item retention period configured on the mailbox database. Once mailbox is put on litigation hold, the Recoverable Items folder is not purged and items in this folder are retained indefinitely. The Recoverable Items folder is hidden from the default view of Microsoft Outlook, OWA and other email client software. Recoverable Items folder contains three sub-folders

1. Deletion – When an end user deletes items from the “Deleted Items”, those items are moved to the Recoverable Items/Deletion folder which can be recovered from the “Recover Deleted Items” window.
2. Purges – Items are moved to this folder when user purges data from the “Recover Deleted Items” view or when MRM purges data from Recoverable Items/Deletions folder due to maximum retention limit set.
3. Versions – Items are moved to this folder when users make any changes in the original mailbox items. The original copy is saved in the Recoverable Items/Versions folder.

Please feel free to share.

Related News

One Response

Leave a Reply
  1. Anthony
    Jul 25, 2013 - 08:58 AM

    Thanks for share!!!!!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyrıght 2013 FUEL THEMES. All RIGHTS RESERVED.

Enjoy this blog? Please spread the word :)