MSExchangeGuru.com

Learn Exchange the Guru way !!!

 

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

4 Responses to “Clean-MailboxDatabase in Exchange 2013”

  1. Tyson F. Gautreaux Says:

    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.

  2. Albert Widjaja Says:

    Hi,

    Will that command (Clean-MailboxDatabase) also clean the Exchange mailbox corrupted items or deleted item as well ?

  3. Ratish Sekhar Says:

    Nope…. it will only do a cleanup on the DB to update the list of actual user’s residing on it…

  4. Cleanup agent | Dinkiwinki Says:

    […] 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 … […]

Leave a Reply

Categories

Archives

MSExchangeGuru.com