Server 2008 R2 GPO for Exchange Server to empty deleted Items

I there a way I can delete end user deleted items folder? Server 2008 R2 - Exchange Server 2010
Who is Participating?
Sumit GuptaConnect With a Mentor System and Virtualization EngineerCommented:
How to force empty the deleted items / recoverable items dumpster in a users mailbox.

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  | 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

We want to force a purge to reduce TotalDeletedItemSize to increase the AvailableNewMailboxSpace in your mailbox databases. 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 "Display Name goes here" -SearchDumpsterOnly -DeleteContent

Search-Mailbox Problem:
When using Powershell to run the Search-Mailbox command the following error is generated:
Search-Mailbox” Command in Powershell: The Term “Search-Mailbox” Is Not Recognized as the Name of a cmdlet
This error will be generated if the snap-in has not been registered, register the snap-in use the following command:
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
You can set this this through GPO. MS already have these template you might need to download these for the version of office you are using from

1.Open the GPMC through Control panel-> Administrative Tools-> Group Policy Management
2.In the left column, browse to the folder Group Policy Objects and select the Policy you wish to enforce Outlook policies on

LHernandez2Author Commented:
Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.