2011-08-29

Cleanup Agent for Exchange 2007/2010

Clean-MailboxDatabase

 

SYNOPSIS: Use the Clean-MailboxDatabase cmdlet to scan Active Directory for disconnected mailboxes that aren't yet marked as disconnected in the Microsoft Exchange store and update the status of those mailboxes in the Exchange store. This cmdlet isn't able to update the Exchange store unless the Microsoft Exchange Information Store service is running and the database is mounted.

 

SYNTAX: clean-MailboxDatabase -Identity <DatabaseIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]

 

DESCRIPTION: A connected mailbox has two parts: the mailbox object in the Exchange store and the user object with Exchange properties in Active Directory. A disconnected mailbox is the mailbox object in the Exchange store, but it isn't connected to a user object in Active Directory. To disconnect a mailbox, use the Disable-Mailbox cmdlet. To disconnect a mailbox and remove the user object from Active Directory, use the Remove-Mailbox cmdlet. If you want to permanently remove a mailbox object from the Exchange store, use the Remove-Mailbox cmdlet. If you want to reconnect a disconnected mailbox to an Active Directory user account, use the Connect-Mailbox cmdlet.

Under normal circumstances, it isn't necessary to run the Clean-MailboxDatabase cmdlet because a mailbox is marked as disconnected immediately after the Disable-Mailbox or Remove-Mailbox command completes. If you used the Disable-Mailbox cmdlet or the Remove-Mailbox cmdlet while the Microsoft Exchange Information Store service was stopped, or if a mailbox was disabled by an external means other than the Disable-Mailbox cmdlet or Remove-Mailbox cmdlet, you may want to use the Clean-MailboxDatabase cmdlet to scan for disconnected mailboxes. You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Mailbox Database permissions" entry in the Mailbox Permissions to pic.

This example cleans the mailbox database MBD01.

Clean-MailboxDatabase MBD01

 

RELATED LINKS

http://technet.microsoft.com/EN-US/library/a68d31b6-4f32-4a73-b9d9-5d5a6fc1c2f0(EXCHG.141).aspx

How to refresh the disconneted user list in Exchange Server:

http://msmvps.com/blogs/andersonpatricio/archive/2008/03/26/how-to-refresh-the-disconneted-user-list-in-exchange-server-2007.aspx

2011-08-04

Exchange Server Supportability Matrix

Exchange Server Supportability Matrix: http://technet.microsoft.com/en-us/library/ff728623.aspx

 

The Exchange Server Supportability Matrix provides a central source for Microsoft Exchange administrators to easily locate information about the level of support available for any configuration or required component for all versions of Microsoft Exchange.