Skip to content

Commit dd6e0d8

Browse files
committed
6980 homeMDB content ready for pub
1 parent d0f103e commit dd6e0d8

3 files changed

Lines changed: 83 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: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
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:Microsoft 365 Groups
12+
- Exchange Server
13+
- CSSTroubleshoot
14+
- CI 6980
15+
appliesto:
16+
- Exchange Server
17+
ms.date: 02/09/2026
18+
ms.topic: troubleshooting
19+
---
20+
21+
"Database is mandatory on UserMailbox" error in Exchange Server Setup
22+
23+
## Summary
24+
25+
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.
26+
27+
## Symptoms
28+
29+
When you run Exchange Server Setup, the application fails with an error message that resembles the following message:
30+
31+
 > [ERROR] Database is mandatory on `UserMailbox`
32+
33+
##  Cause
34+
35+
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.
36+
37+
## Resolution
38+
39+
Use the SetupAssist script to identify affected mailboxes. Then configure the `homeMDB` attribute for each mailbox.
40+
41+
### Identify affected mailboxes
42+
43+
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.
44+
45+
:::image type="content" source="media/database-mandatory-on-usermailbox/setupassist-result.png" alt-text="Screenshot of SetupAssist script output showing mailboxes with blank homeMDB attributes."
46+
47+
 In the example, the `homeMDB` attribute is blank for `DiscoverySearchMailbox`.
48+
49+
### Fix affected mailboxes
50+
51+
To set the `homeMDB` attribute for each mailbox in the output from the  SetupAssist script, complete these steps:
52+
53+
1. [Open the Exchange Management Shell](/powershell/exchange/open-the-exchange-management-shell?view=exchange-ps) or [connect to your Exchange server by using remote PowerShell](/powershell/exchange/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps).
54+
55+
1. Run the `[Get-MailboxDatabase](/powershell/module/exchangepowershell/get-mailboxdatabase?view=exchange-ps)` cmdlet to get a list of available mailbox databases.
56+
57+
```powershell
58+
59+
Get-MailboxDatabase
60+
61+
```
62+
63+
1. Run the `[Set-Mailbox](/powershell/module/exchangepowershell/set-mailbox?view=exchange-ps)` 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.
64+
65+
```powershell
66+
67+
Set-Mailbox “\<*mailbox DN*\>” -Database “\<*database name*\> “
68+
69+
```
70+
71+
Example:
72+
73+
```powershell
74+
75+
Set-Mailbox "CN=DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852},CN=Users,DC=contoso,DC=lab" -Database "Mailbox Database 1923094126" 
76+
77+
```
78+
79+
1. Close the Exchange Management Shell or PowerShell session.
80+
81+
1. Run Exchange Server Setup again.
129 KB
Loading

0 commit comments

Comments
 (0)