28 C
Dubai
Saturday, November 23, 2024

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

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
Satheshwaran Manoharanhttps://www.azure365pro.com
Award-winning Technology Leader with a wealth of experience running large teams and diversified industry exposure in cloud computing. From shipping lines to rolling stocks.In-depth expertise in driving cloud adoption strategies and modernizing systems to cloud native. Specialized in Microsoft Cloud, DevOps, and Microsoft 365 Stack and conducted numerous successful projects worldwide. Also, Acting as a Technical Advisor for various start-ups.

Related Articles

2 COMMENTS

  1. i have a physical 2010 exchange server with all roles installed expect edge roles. my old users are well without problem. when i create a new user in AD and enable for exchange the user cannot logon to exchange through owa and outlook. the account just hangs asking for PASSword. the users can logon to the domain but not outlook and owa. please help me asap. ephraim

    • check the database. try creating new database and new user.Try creating a user in NEw OU/Same OU. check for user inheritance.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

× How can I help you?