Friday, June 17, 2011

Delete a disconnected mailbix in Exchange 2010

1. Get-MailboxStatistics -Database "Mailbox Database 1166050598" | Where-Object {$_.DisconnectDate -Notlike $NULL} | FL DisplayName, DisconnectDate, MailboxGuid

2. The result should be

DisplayName    : USERMAN
DisconnectDate : 1-7-2010 16:00:48
MailboxGuid    : def4aabd-2156-5857-858f-470efc3e6f28

3. Remove-Mailbox -Database "Mailbox Database 1166050598" -StoreMailboxIdentity def4aabd-2156-  5857-858f-470efc3e6f28

4. clean-mailboxdatabase "Mailbox Database 1166050598"

No comments:

Prevent or Prohibit Server Drives From Being Visible to Users

  To make changes to this policy for one of the seven default values: Start the Microsoft Management Console. On the Console menu, click  Ad...