| Subcribe via RSS

Remove disconnected mailboxes in Exchange 2007

August 15th, 2009 Posted in Exchange server, Mail server, Windows

In Exchange 2007, there are two options to delete a mailbox:
1.  Remove Mailbox
2.  Disable Mailbox
If you remove a mailbox, the mailbox data that is stored in the Exchange mailbox database is marked for deletion and the associated user account is also deleted from Active Directory. If you disable a mailbox,  the user account is retain, it will only disassociate the mailbox data from the user account.

Exchange retain disconnected mailboxes in the mailbox database based on the deleted mailbox retention settings configured for that mailbox database. In Exchange 2007, the default retention period is 30 days.  During this time, the disconnected mailbox can be recovered by associating it with an existing Active Directory user account.  After the specified retention period, a disconnected mailbox is permanently deleted from the Exchange mailbox database.

You can see the list of disconnected mailboxes in Exchange Management Console or use the cmdlet in Exchange Management Shell.

To list all disconnected mailboxes in Exchange Management Shell, run the following cmdlet.

[PS] C:\>Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid

DisplayName         MailboxGuid
-----------         -----------
User1               4ddc1d42-9f8e-4b02-b53f-9fb8421d9423
User2               6f067dce-24fc-4c83-b90a-532728d5b510
User3               e66197d8-d7b5-4ca6-8c25-72825dc82daf

To remove a specific disconnected mailbox, run the following cmdlet:

[PS] C:\>$Temp = Get-MailboxStatistics | Where{$_.DisplayName -eq "User3"}
[PS] C:\>Remove-mailbox -Database "Mailbox Database" -StoreMailboxIdentity $Temp.MailboxGuid

Are you sure you want to perform this action?
Removing store mailbox "e66197d8-d7b5-4ca6-8c25-72825dc82daf" on database "server1.mydomain.com\Mailbox Database".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):Y

To remove all disconnected mailbox, run the following cmdlet:

[PS] C:\>$users = Get-MailboxStatistics | where-object { $_.DisconnectDate -ne $null } | Select DisplayName,MailboxGuid,Database
[PS] C:\>$users | ForEach { Remove-Mailbox -Database $_.Database -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }

44 Responses to “Remove disconnected mailboxes in Exchange 2007”

  1. Qdmtuq Says:

    order fenofibrate 200mg pill buy fenofibrate generic buy tricor generic

  2. Mxezxi Says:

    zaditor pill cheap doxepin tofranil 25mg cost

  3. Gbewlr Says:

    cialis 20mg oral female viagra sildenafil 20 mg

  4. Vfyppl Says:

    precose for sale buy generic fulvicin purchase fulvicin online cheap

  5. Zelbxm Says:

    purchase minoxidil online minoxidil sale buy generic ed pills for sale

  6. Dtspkj Says:

    where can i buy aspirin eukroma cream purchase imiquad cream

  7. Jkujoo Says:

    where can i buy dipyridamole gemfibrozil uk pravastatin 20mg over the counter

  8. Pnojgf Says:

    buy meloset pills order cerazette pills danazol for sale

  9. Ifsdou Says:

    buy fludrocortisone 100mcg generic aciphex 10mg tablet imodium 2mg us

  10. Jfhhlq Says:

    buy dydrogesterone paypal cheap sitagliptin 100mg buy jardiance 10mg pills

  11. Wkjllp Says:

    generic prasugrel 10mg prasugrel order online detrol online order

  12. Vkduuc Says:

    buy etodolac 600 mg generic buy colospa 135 mg generic cost pletal 100mg

  13. Pxdmah Says:

    purchase ferrous sale order generic betapace 40 mg betapace 40 mg cheap

  14. Dpmgwt Says:

    generic mestinon 60mg purchase mestinon generic maxalt for sale online

  15. Vhbvyc Says:

    order enalapril 5mg generic buy casodex 50 mg generic order lactulose bottles

  16. Zmxluz Says:

    buy betahistine without a prescription buy betahistine 16mg without prescription purchase probenecid generic

  17. Cbloze Says:

    buy latanoprost paypal xeloda 500 mg cost rivastigmine over the counter

  18. Fyqquk Says:

    prilosec 10mg pill metoprolol 50mg brand buy metoprolol without prescription

  19. Aqxsqc Says:

    buy premarin 0.625mg generic buy generic premarin order sildenafil

  20. Ksofhp Says:

    buy telmisartan 80mg generic hydroxychloroquine uk buy molnunat 200mg

  21. Qpzwje Says:

    cenforce drug order cenforce 100mg generic order generic chloroquine

  22. Xwxvce Says:

    buy cialis 20mg pills viagra 50 mg order generic sildenafil 50mg

  23. Naauaq Says:

    cefdinir 300 mg canada order omnicef 300 mg prevacid buy online

  24. Mokeda Says:

    buy modafinil 100mg pill purchase provigil pills deltasone 40mg price

  25. Rsqlbu Says:

    lipitor buy online order amlodipine sale buy norvasc 10mg generic

  26. Lsratj Says:

    generic isotretinoin 10mg order isotretinoin 20mg pills azithromycin 500mg usa

  27. Mpdokq Says:

    buy azithromycin pills for sale cheap neurontin pills buy neurontin medication

  28. Vktoos Says:

    protonix pills phenazopyridine 200mg over the counter generic phenazopyridine

  29. Tswibt Says:

    online casino games lasix 40mg tablet lasix order

  30. 8369 Says:

    Thnks for finalky writing abolut > Papandut.Com: ike IT, blog IT, shhare IT, help with IT » Bllog Arrchive
    » Remove disconnected mailboxes in Exchange 2007 < Loved it!

  31. Jlkwhv Says:

    online casino slots buy ventolin 4mg buy generic ventolin over the counter

  32. Reuxze Says:

    symmetrel 100 mg pills buy generic atenolol online aczone 100mg brand

  33. Lammjw Says:

    free roulette stromectol for humans ivermectin 12 mg pills for humans

  34. 3973 Says:

    Cooll blog! Is your thene custom made or
    did you dlwnload iit fromm somewhere? A theme like yours with a
    few simple tweekss would reallly make my blog jukp out.

    Pleaqse let me know wwhere yoou got your theme.

  35. Zjumwn Says:

    casino games free amoxiclav pills order synthroid without prescription

  36. Sfbofw Says:

    buy medrol usa nifedipine 30mg us brand triamcinolone

  37. Iqmrxo Says:

    clomiphene 50mg usa imuran for sale online buy imuran generic

  38. Webzjv Says:

    order perindopril 4mg online order allegra 120mg online cheap fexofenadine pills

  39. Zzpqfx Says:

    levitra brand buy digoxin buy zanaflex online cheap

  40. Eyesld Says:

    phenytoin 100 mg pills cyclobenzaprine 15mg usa oral oxybutynin 5mg

  41. Ulcnok Says:

    loratadine ca order priligy 30mg sale buy cheap dapoxetine

  42. Jjwelo Says:

    ozobax sale ozobax medication where to buy ketorolac without a prescription

  43. Hzlhbg Says:

    buy generic amaryl over the counter buy generic cytotec 200mcg order arcoxia

  44. Kjlmpd Says:

    order ozobax generic purchase amitriptyline generic order toradol 10mg without prescription

Leave a Reply