Skip to content

The-Term ‘Clean-Mailboxdatabase’ is not a recognized cmdlet,function, script Exchange 2013

Last updated on Jul 2, 2017

Clean MailboxDatabase Command no longer Valid on #Exchange 2013

Command has  been decommissioned for Exchange 2013 and replaced with Update-StoreMailboxState http://technet.microsoft.com/en-us/library/jj860462(v=exchg.150).aspx

Update-StoreMailboxState require the GUID of a mailbox to execute so it usually easier to run in combination with Get-MailboxStatistics like the example below

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

Use the Update-StoreMailboxState cmdlet to synchronize the mailbox state for a mailbox in the Exchange mailbox store with the state of the corresponding Active Directory user account. This is especially useful when you want to show disconnected mailboxes or reflect a change in mailbox quota settings

Original-Link

#ThatLazyAdmin

Sharing is caring!

Published inExchange 2013PowerShellWindows Server 2012

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *