Thursday, June 30, 2011

Exchange 2010-Clean Mailbox Database

In Exchange 2007, if a recently-disabled mailbox does not appear in the Disconnected Mailbox menu in EMC (if you wanted to reconnect it to a different user, for instance), simply run one of the following commands in Powershell:
Clean-MailboxDatabase \servername\SGName\Store
Cleans Database of the individual store

Get-Mailboxdatabase | Clean-MailboxDatabase
Cleans all databases in the Organization

Get-Mailboxdatabase | Where{ $_.Server –eq “<servername>”}| clean-MailboxDatabase
Cleans all databases in the specific store
if there is only one db, then just Get-MailboxDatabase | Clean-MailboxDatabase


Get-Mailboxdatabase | Where{ $_.Name –eq “<DatabaseName>”}| clean-MailboxDatabase
Cleans all databases that match the specific name given in “Databasename”

No comments:

Post a Comment