Failed install of Exchange server 2019 W server 2022

Ozz Lioi 41 Reputation points
2023-01-11T19:09:36.04+00:00

I tried running the installer again and got this error in step 6 of 12 Mailbox role: Transport Service:

Error:
The following error was generated when "$error.Clear(); 
          if ( ($server -eq $null) -and ($RoleIsDatacenter -ne $true) )
          {
            Update-RmsSharedIdentity -ServerName $RoleNetBIOSName
          }
        " was run: "Microsoft.Exchange.Data.DataValidationException: Database is mandatory on UserMailbox.
   at Microsoft.Exchange.Data.Directory.ADDataSession.Save(ADObject instanceToSave, IEnumerable`1 properties, Boolean bypassValidation)
   at Microsoft.Exchange.Data.Directory.Recipient.ADRecipientObjectSession.Save(ADRecipient instanceToSave, String callerFilePath, Int32 callerFileLine, String memberName)
   at Microsoft.Exchange.Management.Deployment.UpdateRmsSharedIdentity.Link()
   at Microsoft.Exchange.Management.Deployment.UpdateRmsSharedIdentity.InternalProcessRecord()
   at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
   at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)".

When I try via powershell with the following command .\Setup.exe /IAcceptExchangeServerLicenseTermsDiagnosticDataOFF /mode:upgrade /dc:someDC
I get:


Microsoft Exchange Server 2019 Cumulative Update 12 Unattended Setup

Copying Files...
File copy complete. Setup will now collect additional information needed for installation.

Languages
Management tools

Performing Microsoft Exchange Server Prerequisite Check

    Configuring Prerequisites                                                                         COMPLETED
    Prerequisite Analysis                                                                             COMPLETED

Configuring Microsoft Exchange Server

    Language Files                                                                                    COMPLETED
    Restoring Services                                                                                COMPLETED
    Language Configuration                                                                            COMPLETED
    Exchange Management Tools                                                                         COMPLETED
    Finalizing Setup                                                                                  COMPLETED

The Exchange Server setup operation completed successfully.
PS C:\Exchange>

No mailbox role, which was the intention and the way it was initially installed.

Any assistance for me to get mailbox role installed?

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,083 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,357 questions
{count} votes

Accepted answer
  1. Jame Xu-MSFT 4,166 Reputation points
    2023-01-16T10:07:03.3366667+00:00

    Hi @Ozz Lioi ,

    Thanks for your feedback above which shared more information and glad to know that your issue is resolved now! Since our forum has the policy that The question author cannot accept their own answer. They can only accept answers by others, and according to the scenario introduced here: Answering your own questions on Microsoft Q&A

    I would make a brief summary of this post so that other forum members could easily find useful information here:

    [Failed install of Exchange server 2019 W server 2022 - Summary]

    Issue Symptom:
    Install Exchange 2019 with an error due to a corrupt admin's account

    Solution:
    After rebuilding the admin account it could be installed correctly

    You could "Accept Answer" for this summary to close this thread, and your action would be helpful to other users who encounter the same issue and read this thread. Thanks for your understanding!


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Ozz Lioi 41 Reputation points
    2023-01-12T22:22:35.6666667+00:00

    First of all thanks for the reply.

    I installed from PS and used the following command to prepare:
    PS C:\Exchange> Install-WindowsFeature Server-Media-Foundation, NET-Framework-45-Features, RPC-over-HTTP-proxy, RSAT-Clustering, RSAT-Clustering-CmdInterface, RSAT-Clustering-Mgmt, RSAT-Clustering-PowerShell, WAS-Process-Model, Web-Asp-Net45, Web-Basic-Auth, Web-Client-Auth, Web-Digest-Auth, Web-Dir-Browsing, Web-Dyn-Compression, Web-Http-Errors, Web-Http-Logging, Web-Http-Redirect, Web-Http-Tracing, Web-ISAPI-Ext, Web-ISAPI-Filter, Web-Lgcy-Mgmt-Console, Web-Metabase, Web-Mgmt-Console, Web-Mgmt-Service, Web-Net-Ext45, Web-Request-Monitor, Web-Server, Web-Stat-Compression, Web-Static-Content, Web-Windows-Auth, Web-WMI, Windows-Identity-Foundation, RSAT-ADDS

    After that I ran the:

    ./Setup.exe /PrepareSchema /IAcceptExchangeServerLicenseTerms_diagnosticaDataOFF

    and

    ./Setup.exe /PrepareAD /IAcceptExchangeServerLicenseTerms_diagnosticaDataOFF

    On our root DC as it is in our root domain and the server is in our child domain.

    After waiting for propagation I ran the installer just to verify if I had missed anything and there were a couple of pre-requisites missing that I completed install.

    I restarted the server and ran the install from installer again and it failed on Transport Hub.

    Then I ran the upgrade option:

    PS C:\Exchange> .\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF /mode:upgrade /dc:fmdaddc5
    
    Microsoft Exchange Server 2019 Cumulative Update 12 Unattended Setup
    
    Copying Files...
    File copy complete. Setup will now collect additional information needed for installation.
    
    Languages
    Management tools
    
    Performing Microsoft Exchange Server Prerequisite Check
    
        Configuring Prerequisites                                                                         COMPLETED
        Prerequisite Analysis                                                                             COMPLETED
    
    Configuring Microsoft Exchange Server
    
        Language Files                                                                                    COMPLETED
        Restoring Services                                                                                COMPLETED
        Language Configuration                                                                            COMPLETED
        Exchange Management Tools                                                                         COMPLETED
        Finalizing Setup
    

    I am missing all services under Microsoft Exchange and cannot go forward neither backwards (install/remove)

    Tried as well to run the install from PS specifying the Hub Transport

    PS C:\Exchange> .\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF /mode:install /r:hubtransport
    
    Microsoft Exchange Server 2019 Cumulative Update 12 Unattended Setup
    
    Copying Files...
    File copy complete. Setup will now collect additional information needed for installation.
    
    Languages
    Mailbox role: Transport service
    Mailbox role: Client Access service
    Mailbox role: Mailbox service
    Mailbox role: Front End Transport service
    Mailbox role: Client Access Front End service
    
    Performing Microsoft Exchange Server Prerequisite Check
    
        Configuring Prerequisites                                                                                                   COMPLETED
        Prerequisite Analysis                                                                                                       FAILED
    
    A Setup failure previously occurred while installing the HubTransportRole role. Either run Setup again for just this role, or remove the role
    using Control Panel.
    For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.InstallWatermark.aspx
    
    A Setup failure previously occurred while installing the PreFileCopy role. Either run Setup again for just this role, or remove the role using
    Control Panel.
    For more information, visit: http://technet.microsoft.com/library(EXCHG.150)/ms.exch.setupreadiness.InstallWatermark.aspx
    
    
    The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the
    <SystemDrive>:\ExchangeSetupLogs folder.
    PS C:\Exchange>
    
    

    and that is where I am at.

    Very tempted to reinstall the servers and try from scratch!

    0 comments No comments

  2. Ozz Lioi 41 Reputation points
    2023-01-13T21:29:18.79+00:00

    We use Admin accounts in our environment and mine was corrupted.

    I got that information from the installation logs.

    After rebuilding the admin account it installed properly.

    0 comments No comments