Knowledgebase
Puge deleted mailboxes from disconnected mailboxes Print this Article
Exchange 2010 - Delete / Remove all Disconnected Mailboxes
KB ID 0000470 Dtd 24/06/11
Problem
In older versions of Exchange, we just had to "Purge" disconnected mailboxes, now we don't have that option.
Solution
WARNING this will remove ALL disconnected mailboxes, make sure you actually want to do this before proceeding.
1. On one of the Exchange servers > Start > All Programs > Microsoft Exchange Server 2010 > Exchange Management Shell.
2. Issue the following commands;
$mailboxes = Get-ExchangeServer | Where-Object {$_.IsMailboxServer –eq $true} | ForEach-Object { Get-MailboxStatistics –Server $_.Name | Where-Object {$_.DisconnectDate –notlike ‘’}} | select displayname, mailboxguid, database
Then;
$mailboxes | ForEach { Remove-Mailbox -Database $_.Database -StoreMailboxIdentity $_.MailboxGuid -confirm:$false }
Was this answer helpful?
Related Articles
Step By Step Instructions for Configuring Your iPhone, Ipad, Or touch For Microsoft Exchange
Configuring Your iPhone, iPad, & iPod for Microsoft Exchange E-Mail 1. Tap the...
Configuring Your iPhone, iPad, & iPod for Microsoft Exchange E-Mail 1. Tap the...
Step By Step Intructions for configuring your windows 8 phone for microsoft exchange
To set up a Windows 8 Phone for Microsoft Exchange You can set up email accounts on a Microsoft...
To set up a Windows 8 Phone for Microsoft Exchange You can set up email accounts on a Microsoft...
Whitelist a Domain in exchange 2010 Power Shell
Adding Domain/Sender to White list in Exchange 2010 Real simple one, but it’s...
Adding Domain/Sender to White list in Exchange 2010 Real simple one, but it’s...
adding/ trouble shooting sender filter
Enabling or disabling Sender filtering You can use the Exchange Management Shell (EMS) to easily...
Enabling or disabling Sender filtering You can use the Exchange Management Shell (EMS) to easily...
Default Database
This is useful in many different scenarios such as: Simplifies the help desk role of creating...
This is useful in many different scenarios such as: Simplifies the help desk role of creating...