Quantcast
Channel: Mailbox – azure365pro.com
Viewing all articles
Browse latest Browse all 21

Clean-MailboxDatabase (Exchange2010) is Update-StoreMailboxState in Exchange 2013

$
0
0

To refresh the disconnected mailboxes in Exchange 2010 databases – Clean-Mailboxdatabase

For Specific Database -

Get-MailboxDatabase “Dbname” | Clean-mailboxdatabase

For all Databases -

Get-MailboxDatabase | Clean-mailboxdatabase

To refresh the disconnected mailboxes in Exchange 2013 databases – Update-StoreMailboxState

For Specific Database -

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

For all Databases -

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

 

To See Disconnected Mailboxes in Exchange2010/2013 -

Get-MailboxDatabase | Get-MailboxStatistics | Where {($_.DisconnectDate -ne $null)}

To See Disconnected Archive Mailboxes -

Get-MailboxDatabase | Get-MailboxStatistics | Where {($_.DisconnectDate -ne $null) -and ($_.IsArchiveMailbox -eq $true)}

To Connect a Mailbox -

image

To Reconnect the Archive Mailbox in Exchange 2013 -

Enable-Mailbox -ArchiveGuid 215368ca-effc-49d0-bdsfsdfg4f-9665d641dc24 -ArchiveDatabase DB2 -Identity Mailbox1

Note: Primary Mailbox and Archive Mailbox has to be mapped with the Same account. It cannot be different.


Satheshwaran Manoharan

Exchange MVP , Publisher of CareExchange.in
I have been supporting/Deploying/Designing Microsoft Exchange for some years . If you any Questions ?. Please share you thoughts via Comments.

LinkedIn Google+ Skype 


Viewing all articles
Browse latest Browse all 21

Trending Articles