none
clean Mailbox Database across all the database... RRS feed

  • Question

  • Hello Team

    am finding difficulties while doing clean-mailbox database

    Suppose, if we remove / Disable the user mailbox in EMC without knowing their server, or Stogare Groups and database, it will not showing in disconnected mailbox immediately , it is taking too many hours, some time 24 Hours to show in the disconnected mailbox. if we have 50 SG and and 50 Database, it is very difficult to put the command clean-mailbox database on each and every database

    My query is

    1.what is the time frame to show the deleted mailbox in disconnected mailbox

    2.How will we run the clean-mailbox command across all the database in the single exchange server?

     

    Tuesday, March 8, 2011 3:19 PM

Answers

  • This can take up to 24 hours to show, it usually runs as a nightly process.  To run a clean across all databases in the Exchange org, try:

    Get-MailboxDatabase | Clean-MailboxDatabase


    Tim Harrington | MVP: Exchange | MCITP: EMA 2007/2010, MCITP: Server 2008, MCTS: OCS | Blog: http://HowDoUC.blogspot.com | Twitter: @twharrington
    • Proposed as answer by Serena Li Thursday, March 10, 2011 9:55 AM
    • Marked as answer by rush2ramki Saturday, March 12, 2011 6:12 AM
    Tuesday, March 8, 2011 10:37 PM
  •  

    Hi,

     

    You would like to clean all the databases in one-line, Tim and Rich has already pointed the right direction. Just combine the two commands will help you.

    More information:

    Clean-MailboxDatabse:

    http://technet.microsoft.com/en-us/library/bb124076(EXCHG.80).aspx

    Get-MailboxDatabse:

    http://64.4.11.252/en-us/library/bb124924(EXCHG.80).aspx

     

    Best regards,

    Serena


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by rush2ramki Saturday, March 12, 2011 6:12 AM
    Thursday, March 10, 2011 10:00 AM
  • Serana, Rich, Tim...

    Combined the above commands and working great.....

    however i had noticed some thing crazy, some time i disabled the mailbox from EMC which is immediately appears in disconnected mailbox without issue the clean mailbox database command. This is creating confusion again.

    • Marked as answer by rush2ramki Saturday, March 12, 2011 6:12 AM
    Friday, March 11, 2011 4:21 AM

All replies

  • This can take up to 24 hours to show, it usually runs as a nightly process.  To run a clean across all databases in the Exchange org, try:

    Get-MailboxDatabase | Clean-MailboxDatabase


    Tim Harrington | MVP: Exchange | MCITP: EMA 2007/2010, MCITP: Server 2008, MCTS: OCS | Blog: http://HowDoUC.blogspot.com | Twitter: @twharrington
    • Proposed as answer by Serena Li Thursday, March 10, 2011 9:55 AM
    • Marked as answer by rush2ramki Saturday, March 12, 2011 6:12 AM
    Tuesday, March 8, 2011 10:37 PM
  • On Tue, 8 Mar 2011 15:19:21 +0000, rush2ramki wrote:
     
    >am finding difficulties while doing clean-mailbox database
    >
    >Suppose, if we remove / Disable the user mailbox in EMC without knowing their server, or Stogare Groups and database, it will not showing in disconnected mailbox immediately , it is taking too many hours, some time 24 Hours to show in the disconnected mailbox. if we have 50 SG and and 50 Database, it is very difficult to put the command clean-mailbox database on each and every database
     
    Why not use this:
     
    get-mailboxdatabase | clean-mailboxdatabase
     
    >My query is
    >
    >1.what is the time frame to show the deleted mailbox in disconnected mailbox
    >
    >2.How will we run the clean-mailbox command across all the database in the single exchange server?
     
    get-mailboxdatabase -server <name> | clean-mailboxdatabase
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    • Proposed as answer by Serena Li Thursday, March 10, 2011 9:55 AM
    Wednesday, March 9, 2011 3:02 AM
  •  

    Hi,

     

    You would like to clean all the databases in one-line, Tim and Rich has already pointed the right direction. Just combine the two commands will help you.

    More information:

    Clean-MailboxDatabse:

    http://technet.microsoft.com/en-us/library/bb124076(EXCHG.80).aspx

    Get-MailboxDatabse:

    http://64.4.11.252/en-us/library/bb124924(EXCHG.80).aspx

     

    Best regards,

    Serena


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    • Marked as answer by rush2ramki Saturday, March 12, 2011 6:12 AM
    Thursday, March 10, 2011 10:00 AM
  • Serana, Rich, Tim...

    Combined the above commands and working great.....

    however i had noticed some thing crazy, some time i disabled the mailbox from EMC which is immediately appears in disconnected mailbox without issue the clean mailbox database command. This is creating confusion again.

    • Marked as answer by rush2ramki Saturday, March 12, 2011 6:12 AM
    Friday, March 11, 2011 4:21 AM
  • On Fri, 11 Mar 2011 04:21:39 +0000, rush2ramki wrote:
     
    >
    >
    >Serana, Rich, Tim...
    >
    >Combined the above commands and working great.....
    >
    >however i had noticed some thing crazy, some time i disabled the mailbox from EMC which is immediately appears in disconnected mailbox without issue the clean mailbox database command. This is creating confusion again.
     
    If it showed up as disconnected soon after you took that action it's
    just because you were lucky.
     
    ---
    Rich Matheisen
    MCSE+I, Exchange MVP
     

    --- Rich Matheisen MCSE+I, Exchange MVP
    Saturday, March 12, 2011 3:34 AM
  • Hi All, so by executing this Clean-MBDB from http://technet.microsoft.com/en-us/library/bb124076(v=exchg.80).aspx it should clean all of the corrupted mailboxes that has been left by the mailbox migration ?

    /* Server Support Specialist */

    Monday, September 24, 2012 12:57 AM