Avatar of masterofall
masterofall
Flag 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?
ExchangeActive DirectoryWindows Server 2008

Avatar of undefined
Last Comment
Manpreet SIngh Khatra

8/22/2022 - Mon
Sushil Sonawane

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
Manpreet SIngh Khatra

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Exchange_Geek

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
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}
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Manpreet SIngh Khatra

So is the command executed and mailboxes removed

- Rancy