Just a little post to troubleshoot a problem with Exchange mailboxes. During the last weekend, I’ve encountered a big problem on my Exchange Server. After debugging the problem due to some Active Directory containers deleted, I’ve restored them with Veeam Backup & Replication but all mailboxes have been Disabled and stored in Disconnected mailbox folder on mine Exchange Server!
Step 1 : Analyze !
If you are in this situation, you can apply my recommendations:
- All my AD accounts were found and they can log onto the network!
- In the OWA interface, I’ve seen “Your account has been disabled” …
- In the Exchange Management Console, all my mailboxes were in the Disconnected mailbox folder! When I try to reconnect using “Matching User”, no user is listed. The user is also not listed when choosing “Existing Users.”
- All Exchange services were running.
When I see the EventViewer logs, I can see 2 event ID:
Event ID 1025: “Exchange ActiveSync cannot access mailbox on behalf of user “USER”, on server VDAYS.NET, because the mailbox has been disabled.”
Event ID 1006: “The Microsoft Exchange Mailbox Replication service was unable to process jobs in a mailbox database. Database: EXCDB1”
Step 2 : Resolve !
In the Exchange Management Shell:
- Check mailboxes were “Disconnected”
1 |
Get-MailboxDatabase "DATABASE" | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displayname,database,disconnectreason -auto |
- Clean mailboxes (this command doesn’t delete your mailboxes! it will reconnect on the user)
1 |
Get-MailboxDatabase "DATABASE" | Clean-MailboxDatabase |
Run again the first command to verify!
Problem persist?
If the problem persists, you can see in the “HomeMDB” AD Attribute User if the right database is tagged! if not, you can “Edit” it to add the right value!
You can search your “HomeMDB” value when you connect on your domain in ADSI Edit > Configuration
Browse to :
1 |
CN=Configuration,DC=your,DC=domain > CN=Services > CN=Microsoft Exchange > CN=ORGANIZATION > CN=Administrative Groups > CN=Exchange Administrative Group (XXXXXXX) > CN=Databases |
Here you have databases list. You do copy the “Distinguished Name” value of database and assign it to your user.
The type of value is :
1 |
CN=DATABASE,CN=Databases,CN=Exchange Administrative Group (XXXXXXXXX),CN=Administrative Groups,CN=ORGANIZATION,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=YOUR,DC=DOMAIN |
Reload the command line:
1 |
Get-MailboxDatabase "DATABASE" | Clean-MailboxDatabase |
And verify again:
1 |
Get-MailboxDatabase "DATABASE" | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displayname,database,disconnectreason -auto |
Tips !
If you want to change the HomeMDB for multiple users, you can execute this Powershell cdmlet :
1 |
Get-ADUser -Filter * -SearchBase "OU=YOUR-OU,DC=YOUR,DC=DOMAIN" | Set-ADUser -Replace @{HomeMDB="CN=DATABASE,CN=Databases,CN=Exchange Administrative Group (XXXXXXXXXXX),CN=Administrative Groups,CN=ORGANIZATION,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=YOUR,DC=DOMAIN"} |
I hope this post has helped you !
Hi ! I’m Maxime. Founder and independant author of vDays.net. I have worked in service IT since 6 years ago, after a 5 years’ internship. Via this blog, I would like share and discuss with you on new technologies, especially on virtualization and VMware. If you want to know more about me, check out my “about me” page or follow me on Twitter and LinkedIn