Exchange Server CU & SE Upgrade Pre-Flight Checklist: Resolving Discovery & Arbitration Mailbox Prerequisites

During Cumulative Update (CU) installations, Service Pack upgrades, or migrations to Exchange Server Subscription Edition (SE), setup routines execute rigorous Active Directory schema and mailbox database readiness checks.

One of the most persistent setup stoppers during the Mailbox Role: Transport Service and Mailbox Services installation phase is a failure to mount the database containing the default DiscoverySearchMailbox or an inability to resolve the Discovery Management universal security group:

TEXT
[ERROR] The following error was generated when "$error.Clear();
$name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
$dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
$dismbx = get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1;
...
Couldn't resolve the user or group "yourdomain.com/Microsoft Exchange Security Groups/Discovery Management."
If the user or group is a foreign forest principal, you must have either a two-way trust or an outgoing trust.
[ERROR] The trust relationship between the primary domain and the trusted domain failed.

This guide explains why this error occurs across modern Exchange Server versions (Exchange 2016, 2019, and Exchange SE), how to inspect system arbitration mailboxes before launching setup, and the definitive remediation commands to resolve the issue.


Exchange Upgrade & CU Pre-Flight System Mailbox Verification Workflow Step 1: Pre-Flight Audit Audit Arbitration & Discovery Get-Mailbox -Arbitration Verify mounted mailbox DBs Check AD Forest functional state Arbitration & Discovery Healthy & Mounted? YES Ready for Upgrade Run Setup.exe /m:Upgrade Mailbox role mounts DBs cleanly Zero permission resolution errors NO / CORRUPT Remediation Options Option A: Re-permission Mailbox Disable-Mailbox DiscoverySearchMailbox Run Upgrade, then Enable & Add Rights Option B: Re-Prepare AD Purge corrupt account in Users OU Setup.exe /PrepareAD then Enable-Mailbox

1. Why Setup Fails on Discovery & Arbitration Mailboxes

During an upgrade, the Exchange installer does not merely copy binaries; it verifies that core Active Directory and Exchange system recipients are fully provisioned and functioning:

  1. DiscoverySearchMailbox{D919BA05-46A6-415f-80AD-7E09334BB852}: Used for in-place eDiscovery and compliance search targets. Setup scripts attempt to grant the Discovery Management role group FullAccess permission to this mailbox.
  2. SystemMailbox Arbitration Mailboxes:

- {e0dc1c29-89c3-4034-b678-e6c29d823ed9} (Discovery system mailbox) - {1f05a927-xxxx-xxxx-xxxx-xxxxxxxxxxxx} (Approval and moderation workflow) - {bb558c35-97f1-4cb9-8ff7-d53741dc928c} (Offline Address Book generation) - Migration.8f3e7716-2011-43e4-96b1-aa62e5b840e2 (Mailbox migration service)

If the database hosting these mailboxes is dismounted, or if the user account in the root domain's CN=Users container was deleted, moved, or corrupted during an administrative cleanup, Setup halts with a terminating exception.


2. Pre-Upgrade Pre-Flight Inspection Script

Run this PowerShell command in the Exchange Management Shell (EMS) before starting your CU or Exchange SE upgrade:

POWERSHELL
# 1. Audit all Arbitration Mailboxes
Write-Host "=== Arbitration Mailboxes ===" -ForegroundColor Cyan
Get-Mailbox -Arbitration | Select-Object Name, DisplayName, Database, ServerName

# 2. Check Discovery Search Mailbox
Write-Host "`n=== Discovery Search Mailboxes ===" -ForegroundColor Cyan
Get-Mailbox -Filter {RecipientTypeDetails -eq "DiscoveryMailbox"} |
    Select-Object Name, DisplayName, Database, ServerName

# 3. Verify Database Mount Status
$systemDbs = (Get-Mailbox -Arbitration | Select-Object -ExpandProperty Database -Unique)
foreach ($db in $systemDbs) {
    $status = Get-MailboxDatabase -Identity $db -Status | Select-Object Name, Mounted, Server
    if ($status.Mounted -eq $true) {
        Write-Host "[OK] Database $($status.Name) on $($status.Server) is MOUNTED" -ForegroundColor Green
    } else {
        Write-Host "[FAIL] Database $($status.Name) on $($status.Server) is DISMOUNTED!" -ForegroundColor Red
    }
}

If any database hosting arbitration or discovery mailboxes is dismounted, mount it immediately (Mount-Database <DatabaseName>) or move the system mailboxes to an active, mounted database.


3. Two Proven Solutions to Fix the Setup Failure

Solution 1: Temporarily Disable and Re-Stamp Permissions (Fastest)

If the Discovery Search mailbox user exists in Active Directory but permissions fail to stamp because of cross-forest group resolution delays or SID mismatches:

POWERSHELL
# Step 1: Temporarily disable the Discovery Search Mailbox
Disable-Mailbox -Identity "DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}" -Confirm:$false

# Step 2: Resume / Re-run Exchange Setup
# Setup.exe /m:Upgrade /IAcceptExchangeServerLicenseTerms_DiagnosticDataON

# Step 3: Re-enable the Discovery Search Mailbox after upgrade completes
Enable-Mailbox -Identity "DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}" -Discovery

# Step 4: Re-grant FullAccess permission to Discovery Management group
Add-MailboxPermission -Identity "DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}" `
    -User "Discovery Management" `
    -AccessRights FullAccess `
    -InheritanceType All

Solution 2: Full Active Directory Reconstruction via /PrepareAD

If the Active Directory user account was deleted or corrupted, follow this clean reconstruction procedure:

  1. Delete any leftover disabled user account:

Open Active Directory Users and Computers (ADUC), navigate to the Users container in the forest root domain, and delete any orphaned DiscoverySearchMailbox or SystemMailbox{} user objects that have lost their attributes.

  1. Re-run Active Directory Preparation:

From an elevated command prompt on a domain-joined server in the same AD site as the Schema Master:

CMD
   Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /PrepareAD
   
This recreates the default accounts in the CN=Users container with proper security descriptors.

  1. Re-enable the Arbitration and Discovery Mailboxes:

From the Exchange Management Shell:

POWERSHELL
   # Target the root Global Catalog server
   $RootGC = (Get-ADDomainController -Discover -Service GlobalCatalog).HostName

   # Re-enable the Discovery System Arbitration Mailbox
   Enable-Mailbox -Arbitration `
       -DomainController $RootGC `
       -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}"

   # Re-enable the OAB generation mailbox
   Enable-Mailbox -Arbitration `
       -DomainController $RootGC `
       -Identity "SystemMailbox{bb558c35-97f1-4cb9-8ff7-d53741dc928c}"

   # Re-enable the Migration Mailbox
   Enable-Mailbox -Arbitration `
       -DomainController $RootGC `
       -Identity "Migration.8f3e7716-2011-43e4-96b1-aa62e5b840e2"
   

  1. Verify Health:
POWERSHELL
   Get-Mailbox -Arbitration | Format-Table Name, DisplayName, Database, ServerName -AutoSize
   

4. Key Takeaways for Messaging Administrators

  • Never store arbitration mailboxes exclusively on non-replicated or temporary mailbox databases.
  • Always include arbitration mailbox databases in your high-availability DAG replication topologies.
  • Include Get-Mailbox -Arbitration in your monthly server health maintenance routines to catch dismounted or orphaned system accounts before scheduled maintenance windows.

💬 Reader Comments & Feedback

Did this runbook help, or did Microsoft change a cmdlet or UI menu? Share your feedback below.