Exchange 2013 no Clean-MailboxDatabase command?

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

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!

Leave A Comment

like what you see? 

Sign-up to our newsletter and never miss out on the latest blogs, events and tech news from the world of risual
Give it a try, you can unsubscribe anytime.