Clean-MailboxDatabase in Exchange 2013
Clean-MailboxDatabase in Exchange 2013
Clean-MailboxDatabase in Exchange 2013 is a new CMDLet:
Update-StoreMailboxState
EXAMPLE 1
This example updates the mailbox state for a mailbox located on the mailbox database MDB01 and whose GUID is 4a830e3f-fd07-4629-baa1-8bce16b86d88.
Update-StoreMailboxState -Database MDB01 -Identity 4a830e3f-fd07-4629-baa1-8bce16b86d88
EXAMPLE 2
This example updates the mailbox state for all mailboxes on the mailbox database MDB02.
Get-MailboxStatistics -Database MDB02 | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false }
Reference:
Update-StoreMailboxState: http://technet.microsoft.com/en-us/library/jj860462(v=exchg.150).aspx
#########################
Did “Run cleanup agent” vanish in Exchange 2007?
It’s still there. 🙂
Run this cmdlet from powershell “Clean-MailboxDatabase “name of the database”.
We use this normally after disbaling a user and when the user dont appear with the “Disconnected Users” section in EMC.
Ratish
October 19th, 2010 at 1:55 am
Finally, I found what I was looking for… I think MS need to document these stuffs properly… I disabled a user and was lost for a long time..
God bless you mate, and thanks from the deep of my heart, thank you. Best regards.
March 6th, 2011 at 11:41 pm
Hi,
Will that command (Clean-MailboxDatabase) also clean the Exchange mailbox corrupted items or deleted item as well ?
March 7th, 2011 at 2:06 am
Nope…. it will only do a cleanup on the DB to update the list of actual user’s residing on it…
August 30th, 2012 at 6:12 pm
[…] Run cleanup agent in Exchange 2007 is Clean-MailboxDatabase …Jul 24, 2010 … Did ”Run cleanup agent” vanish in Exchange 2007? It’s still there. Run this cmdlet from powershell “Clean-MailboxDatabase “name of the … […]