Skip to content

Commit 45bf22f

Browse files
authored
Merge pull request #10689 from MicrosoftDocs/AB#6980-kccross-usermailbox
AB#6980 Database is mandatory on Usermailbox - missing homeMDB attribute
2 parents d0f103e + 96db6f1 commit 45bf22f

3 files changed

Lines changed: 82 additions & 0 deletions

File tree

Exchange/ExchangeServer/servertoc/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,8 @@ items:
492492
href: ../setup/event-id-6010-after-cumulative-update-23.md
493493
- name: Exchange Server 2019 setup does not run correctly using PowerShell
494494
href: ../setup/ex2019-setup-does-not-run-correctly-started-powershell.md
495+
- name: Exchange Server Setup fails and returns “Database is mandatory on UserMailbox” error
496+
href: ../setup/database-mandatory-on-usermailbox.md
495497
- name: Instal PST Capture tool fails
496498
href: ../setup/pst-capture-setup-wizard-ended-prematurely.md
497499
- name: Install Exchange Server 2010 SP2 fails
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
title: Exchange Server Setup fails and returns "Database is mandatory on UserMailbox" error
3+
description: Explains how to identify and correct a blank homeMDB attribute on essential mailboxes to ensure that Exchange Server Setup finishes successfully.
4+
author: cloud-writer
5+
ms.author: meerak
6+
manager: dcscontentpm
7+
ms.reviewer: batre, arindamt, v-kccross
8+
audience: ITPro
9+
ms.topic: troubleshooting
10+
ms.custom:
11+
- sap:Setup Issues
12+
- Exchange Server
13+
- CSSTroubleshoot
14+
- CI 6980
15+
appliesto:
16+
- Exchange Server SE
17+
ms.date: 02/09/2026
18+
---
19+
20+
# "Database is mandatory on UserMailbox" error in Exchange Server Setup
21+
22+
## Summary
23+
24+
The article discusses a Microsoft Exchange Server Setup failure that occurs when essential mailboxes, such as arbitration or discovery mailboxes, have blank `homeMDB` attributes. You can resolve the Exchange Server Setup error by fixing the missing mailbox database assignment.
25+
26+
## Symptoms
27+
28+
When you run Exchange Server Setup, the application fails with an error message that resembles the following message:
29+
30+
 > [ERROR] Database is mandatory on `UserMailbox`
31+
32+
##  Cause
33+
34+
You receive this error message if the `homeMDB` attribute is blank on essential mailboxes such as the arbitration mailbox or the discovery mailbox. This problem can occur, for example, if the mailbox host server is incorrectly deleted.
35+
36+
## Resolution
37+
38+
Use the SetupAssist script to identify affected mailboxes. Then configure the `homeMDB` attribute for each mailbox.
39+
40+
### Identify affected mailboxes
41+
42+
On the server on which Setup failed, download and then run the [SetupAssist](https://microsoft.github.io/CSS-Exchange/Setup/SetupAssist/) script. The script returns information about mailboxes as shown in the following example.
43+
44+
:::image type="content" source="media/database-mandatory-on-usermailbox/setup-assist-result.png" alt-text="Screenshot of SetupAssist script output showing mailboxes with blank homeMDB attributes."
45+
46+
 In the example, the `homeMDB` attribute is blank for `DiscoverySearchMailbox`.
47+
48+
### Fix affected mailboxes
49+
50+
To set the `homeMDB` attribute for each mailbox in the output from the SetupAssist script, complete these steps:
51+
52+
1. [Open the Exchange Management Shell](/powershell/exchange/open-the-exchange-management-shell) or [connect to your Exchange server by using remote PowerShell](/powershell/exchange/connect-to-exchange-servers-using-remote-powershell).
53+
54+
1. Run the `[Get-MailboxDatabase](/powershell/module/exchangepowershell/get-mailboxdatabase)` cmdlet to get a list of available mailbox databases.
55+
56+
```powershell
57+
58+
Get-MailboxDatabase
59+
60+
```
61+
62+
1. Run the `[Set-Mailbox](/powershell/module/exchangepowershell/set-mailbox)` cmdlet to set the `homeMDB` attribute one time for each mailbox in the output from the SetupAssist script. For each confirmation message that displays, select **Yes**. When you run the cmdlet, use a value that uniquely identifies the database, such as the distinguished name (DN), the GUID, or its name.
63+
64+
```powershell
65+
66+
Set-Mailbox “\<*mailbox DN*\>” -Database “\<*database name*\> “
67+
68+
```
69+
70+
Example:
71+
72+
```powershell
73+
74+
Set-Mailbox "CN=DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852},CN=Users,DC=contoso,DC=lab" -Database "Mailbox Database 1923094126" 
75+
76+
```
77+
78+
1. Close the Exchange Management Shell or PowerShell session.
79+
80+
1. Run Exchange Server Setup again.
129 KB
Loading

0 commit comments

Comments
 (0)