Search This Blog

Thursday, 28 February 2013

How to Empty a Mailbox of Content in Exchange Server 2010 SP2

Cannot find Search-Mailbox


Before you can use the cmdlet Search-Mailbox you need to load the Snap In for this. Otherwise the error above is displayed and the cmdlet is not found.

Add Snap In


Load the Snap In with the cmdlet Add-PSSnapin Microsoft.Exchange.Management.Powershell.E2010



You can then use the cmdlet Search-Mailbox to find a mailbox and then choose the parameter DeleteContent to empty the mailbox.

Search-Mailbox -Identity "" -DeleteContent

This will not delete any folders in a mailbox these must be deleted manually.

No comments:

Post a Comment