Search This Blog

Thursday 28 February 2013

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

Cannot find Search-Mailbox

media_1362047944070.png

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

media_1362047993996.png

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

Search-Mailbox

media_1362048005181.png

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 "user@domain.com" -DeleteContent

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

No comments:

Post a Comment