Link to home
Start Free TrialLog in
Avatar of masterofall
masterofallFlag for United States of America

asked on

Disconnected mailboxes in Exchange 2010 server after moving to new database

I moved some mailboxes from one database (let call it database 1) into smaller databases. The mailboxes are in the new databases and working fine but the mailboxes name are still listed under 'Recipient cOnfiguratio/Disconnected Mailbox' with the old database 1 name,

All database were backed up last night.

I just changed the orginal database to keep deleted mailboxes for 1 day (it was 30.)

Enable background database maintenance is (24  7 ESE scanning) is checked on the orginal database

How do I tell the server to purge the copies in database 1 immediately?
Avatar of Sushil Sonawane
Sushil Sonawane
Flag of India image

Refer below link to change policy for deleted mailbox item.

http://technet.microsoft.com/en-in/library/dd297937(v=exchg.141).aspx

After change the Keep deleted mailboxes for (days) to 1 day . run  Exchange run the "Database Maintenance", the mailbox will be deleted. And Event ID 9532 will be recored.
 "The mailbox has been removed from mailbox database"
 
If the mailbox is not be deleted, the Event ID 9533 will also be recored.

For more info refer below link :

http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/9ce341b9-2f84-46eb-bea7-d6447ea95ef2
ASKER CERTIFIED SOLUTION
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If there are some mailboxes, I'd assume you're talking of 25-50 mailboxes and not more.

If that be the count, go to disconnected mailboxes, select all of them - right click and purge.

You're worries are over in 2minutes :)

Regards,
Exchange_Geek
Avatar of masterofall

ASKER

1 - Exchange_Geek, it was more that 50 mailboxes and I did not get the purge option.

2- I used the link provided by randy and used this version of the command without the confirm:$false and ended up answering A as confirmation of delete for every mailbox to be deleted.  A did not act as answer ALL.

#Remove all SoftDeleted disconnected mailboxes from a Database
 
$Mailboxes = Get-MailboxStatistics -Database "Database-01" | where {$_.DisconnectReason -eq “SoftDeleted”}
$Mailboxes | foreach {Remove-StoreMailbox -Database $_.database -Identity $_.mailboxguid -MailboxState SoftDeleted}
So is the command executed and mailboxes removed

- Rancy