Exchange 2013 no Clean-MailboxDatabase command?

2017-12-07T10:04:32+00:00 August 13th, 2014|Exchange|

I went to run a Clean-MailboxDatabase command today to show a recently disconnected mailbox but found that this command has now been decommissioned for Exchange 2013 and replaced with Update-StoreMailboxState ( But you need to know the GUID of the disconnected mailbox – I didn’t take note of that! So to get it to do all mailboxes in a particular DB you need to run the following:

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

After that completed up popped my disconnected mailbox as expected.

Hope it helps!