Tuesday, September 1, 2015

[EX2013] Update Disconnected Mailboxes





This example updates the mailbox state for all mailboxes on the mailbox database MDB02.

Get-MailboxStatistics -Database MDB02 | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }


This example updates the mailbox state for all disconnected mailboxes on the mailbox database MDB03.

Get-MailboxStatistics -Database MDB03 | Where { $_.DisconnectReason -ne $null } | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }



Update-StoreMailboxState


Remove-StoreMailbox