reg88.com

fine...I'll blog too

Cleanup (Purge) Exchange Mailboxes by Date

To cleanup an Exchange Mailbox and delete messages older than a certain date:

Logon to Exchange Management Shell

1
2
Search-Mailbox -Identity mailbox_name -SearchQuery Received:> $(10/01/2008) and Received:< $(10/05/2010) -EstimateResultOnly
Search-Mailbox -Identity mailbox_name -SearchQuery Received:> $(10/01/2008) and Received:< $(10/05/2010) -DeleteContent