Deleted Mailbox not appearing in Disconnected mailbox in Exchange 2007

Deleted mailboxes will appear in disconnected mailbox list, but it will not reflect immediately. We have to wait for online maintenance to run and complete.

If we accidentally delete mailbox and if we wanted to reconnect it back then we may not be able to find it Disconnected Mailbox. We have run Clean-MailboxDatabase to get the deleted mailbox.

Eg.

Clean-MailboxDatabase \servername\SGName\Store
Cleaning Database of Individual Store

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

Get-Mailboxdatabase | Where{ $_.Server –eq “<servername>”}| clean-MailboxDatabase
Cleans all the database in the specific store

Get-Mailboxdaatabase | Where{ $_.Name –eq “<DatabaseName>”}| clean-MailboxDatabase
Cleans all the Database which matches the specific name given in Databasename

Difference Between Disable-Mailbox and Remove-mailbox

Disable-Mailbox : It will detach the mailbox(removed exchange attributes) from the Ad user objects and adds detached mailbox to the disconnected mailbox list

Eg:  Disable-Mailbox username

Delete-Mailbox: It will delete Mailbox and Ad object and moved to Disconnected mailbox list.  Disconnected mailbox will exists until Deletion settings set in the mailbox store. Any time we can go and reconnect to the disconnected the mailbox.

Eg. Remove-Mailbox username -Permanent

-Permanent option will permanently deletes the mailbox and with out moving to Disconnected mailbox list.