Remove disconnected mailboxes in Exchange 2007
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
Confirm
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 }
August 15th, 2023 at 4:59 am
order fenofibrate 200mg pill buy fenofibrate generic buy tricor generic
August 18th, 2023 at 5:55 am
zaditor pill cheap doxepin tofranil 25mg cost
August 19th, 2023 at 2:42 pm
cialis 20mg oral female viagra sildenafil 20 mg
August 21st, 2023 at 2:15 am
precose for sale buy generic fulvicin purchase fulvicin online cheap
August 22nd, 2023 at 5:42 am
purchase minoxidil online minoxidil sale buy generic ed pills for sale
August 24th, 2023 at 9:20 pm
where can i buy aspirin eukroma cream purchase imiquad cream
August 25th, 2023 at 1:04 pm
where can i buy dipyridamole gemfibrozil uk pravastatin 20mg over the counter
August 28th, 2023 at 7:55 am
buy meloset pills order cerazette pills danazol for sale
August 28th, 2023 at 2:12 pm
buy fludrocortisone 100mcg generic aciphex 10mg tablet imodium 2mg us
August 30th, 2023 at 6:09 pm
buy dydrogesterone paypal cheap sitagliptin 100mg buy jardiance 10mg pills
September 2nd, 2023 at 12:06 am
generic prasugrel 10mg prasugrel order online detrol online order
September 3rd, 2023 at 9:18 am
buy etodolac 600 mg generic buy colospa 135 mg generic cost pletal 100mg
September 5th, 2023 at 12:20 am
purchase ferrous sale order generic betapace 40 mg betapace 40 mg cheap
September 7th, 2023 at 10:28 pm
generic mestinon 60mg purchase mestinon generic maxalt for sale online
September 8th, 2023 at 12:37 am
order enalapril 5mg generic buy casodex 50 mg generic order lactulose bottles
September 11th, 2023 at 12:23 am
buy betahistine without a prescription buy betahistine 16mg without prescription purchase probenecid generic
September 12th, 2023 at 4:23 am
buy latanoprost paypal xeloda 500 mg cost rivastigmine over the counter
September 13th, 2023 at 4:53 am
prilosec 10mg pill metoprolol 50mg brand buy metoprolol without prescription
September 14th, 2023 at 3:26 pm
buy premarin 0.625mg generic buy generic premarin order sildenafil
September 15th, 2023 at 1:05 pm
buy telmisartan 80mg generic hydroxychloroquine uk buy molnunat 200mg
September 16th, 2023 at 9:13 pm
cenforce drug order cenforce 100mg generic order generic chloroquine
September 17th, 2023 at 11:27 am
buy cialis 20mg pills viagra 50 mg order generic sildenafil 50mg
September 19th, 2023 at 9:11 am
cefdinir 300 mg canada order omnicef 300 mg prevacid buy online
September 21st, 2023 at 12:05 am
buy modafinil 100mg pill purchase provigil pills deltasone 40mg price
September 23rd, 2023 at 6:36 am
lipitor buy online order amlodipine sale buy norvasc 10mg generic
September 23rd, 2023 at 1:18 pm
generic isotretinoin 10mg order isotretinoin 20mg pills azithromycin 500mg usa
September 25th, 2023 at 7:12 pm
buy azithromycin pills for sale cheap neurontin pills buy neurontin medication
September 27th, 2023 at 1:12 am
protonix pills phenazopyridine 200mg over the counter generic phenazopyridine
September 27th, 2023 at 8:58 pm
online casino games lasix 40mg tablet lasix order
September 28th, 2023 at 7:20 pm
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!
September 29th, 2023 at 3:45 pm
online casino slots buy ventolin 4mg buy generic ventolin over the counter
September 30th, 2023 at 5:19 am
symmetrel 100 mg pills buy generic atenolol online aczone 100mg brand
October 1st, 2023 at 7:01 am
free roulette stromectol for humans ivermectin 12 mg pills for humans
October 2nd, 2023 at 8:08 pm
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.
Cheers
October 2nd, 2023 at 11:10 pm
casino games free amoxiclav pills order synthroid without prescription
October 3rd, 2023 at 1:55 am
buy medrol usa nifedipine 30mg us brand triamcinolone
October 4th, 2023 at 2:30 pm
clomiphene 50mg usa imuran for sale online buy imuran generic
October 5th, 2023 at 6:28 pm
order perindopril 4mg online order allegra 120mg online cheap fexofenadine pills
October 6th, 2023 at 4:33 am
levitra brand buy digoxin buy zanaflex online cheap
October 8th, 2023 at 4:17 am
phenytoin 100 mg pills cyclobenzaprine 15mg usa oral oxybutynin 5mg
October 8th, 2023 at 12:09 pm
loratadine ca order priligy 30mg sale buy cheap dapoxetine
October 10th, 2023 at 5:57 am
ozobax sale ozobax medication where to buy ketorolac without a prescription
October 11th, 2023 at 9:02 pm
buy generic amaryl over the counter buy generic cytotec 200mcg order arcoxia
October 11th, 2023 at 11:12 pm
order ozobax generic purchase amitriptyline generic order toradol 10mg without prescription