Exchange Server 2019

Mortaza Ali 0 Reputation points
2025-02-07T19:22:56.0366667+00:00

Hi,

I am trying to install Exchange Server 2019. I will get to Stage 7 of the installation, and it fails with the following Error message:

Any help fixing this issue would be much appreciated.

PS D:> .\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataON /Mode:Install /Roles:Mailbox /on:"domain name"

Microsoft Exchange Server 2019 Cumulative Update 14 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 Microsoft Exchange Server

The following error was generated when "$error.Clear();

set-ExchangeServerRole -Identity $RoleFqdnOrName

-IsHubTransportServer:$true -DomainController $RoleDomainController

" was run:

"Microsoft.Exchange.Data.DataValidationException: The domain is invalid.

at

Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target,

String helpUrl)

at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory

category, Object target, Boolean reThrow)

at

Microsoft.Exchange.Configuration.Tasks.DataAccessTask`1.Validate(TDataObject dataObject)

at

Microsoft.Exchange.Configuration.Tasks.SetTaskBase`1.InternalValidate()

at

Microsoft.Exchange.Configuration.Tasks.SetSystemConfigurationObjectTask`3.InternalValidate()

at

Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()

at

Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean

terminatePipelineIfFailed)".

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,448 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Amit Singh 5,071 Reputation points
    2025-02-10T06:06:43.92+00:00

    It seems like you have might be an issue with the domain name you're using in the command. Here are some things you can try to fix the issue:

    1. Verify the domain name you entered in the command to make sure it's correct and matches your actual domain name.
    2. Make sure your server can connect to the domain controller and that the DNS settings are correct.
    3. Before installation, make sure that all the necessary prerequisites for Exchange 2019 are installed on the server (like the Windows features and roles).

    Let me know if you have any query.

    0 comments No comments

  2. Amit Singh 5,071 Reputation points
    2025-02-10T06:06:50.5033333+00:00

    It seems like you have might be an issue with the domain name you're using in the command. Here are some things you can try to fix the issue:

    1. Verify the domain name you entered in the command to make sure it's correct and matches your actual domain name.
    2. Make sure your server can connect to the domain controller and that the DNS settings are correct.
    3. Before installation, make sure that all the necessary prerequisites for Exchange 2019 are installed on the server (like the Windows features and roles).

    Let me know if you have any query.

    0 comments No comments

  3. Tianyi Chang (Shanghai Wicresoft Co Ltd) 0 Reputation points Microsoft Vendor
    2025-02-10T06:59:32.0066667+00:00

    Hi @Mortaza Ali ,

    Welcome to the Microsoft Q&A platform!

    First of all, make sure you meet all the prerequisites for installing exchange server, which you can refer to:https://learn.microsoft.com/en-us/exchange/plan-and-deploy/prerequisites?view=exchserver-2019#exchange-2019-prerequisites-for-preparing-active-directory

    Based on the error message you provided, it seems that the domain name is invalid. Please check if the “Domain Name” field is the same as Sever Manager. You can check it by clicking on local server.

    However, you can also troubleshoot the issue from the following ways:

    1. Granting Schema Admin and Enterprise Admin permissions to the current user in ADUC.
      Open ADUC by DC, check the user you need to install and click member of to add the above permissions to it.
      User's image
    2. Run
      Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareSchema Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAllDomains

    3.Check the detailed installation logs. CD:/ExchangeSetupLogs/ExchangeSetup.
    Find the log truncation and troubleshoot further based on the information it provides.
    User's image

    Similar cases can be found inhttps://learn.microsoft.com/en-us/answers/questions/1340281/error-during-installation-exchange-2016
    https://learn.microsoft.com/en-us/answers/questions/1159971/failed-install-of-exchange-server-2019-w-server-20


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Xintao Qiao-MSFT 6,425 Reputation points Microsoft Vendor
    2025-02-10T09:32:10.6+00:00

    Hi, @Mortaza Ali

    Welcome to the Microsoft Q&A platform!

    First of all, make sure you meet all the prerequisites for installing exchange server, which you can refer to: Exchange Server prerequisites, Exchange 2019 system requirements, Exchange 2019 requirements | Microsoft Learn

    Based on the error message you provided, it seems that the domain name is invalid. Please check if the “Domain Name” field is the same as Sever Manager. You can check it by clicking on local server.

    However, you can also troubleshoot the issue from the following ways:

    1.Granting Schema Admin and Enterprise Admin permissions to the current user in ADUC. Open ADUC by DC, check the user you need to install and click member of to add the above permissions to it.

    image

    2.Run 

    Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareSchema

    Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAD

    Setup.exe /IAcceptExchangeServerLicenseTerms /PrepareAllDomains

    3.Check the detailed installation logs. CD:/ExchangeSetupLogs/ExchangeSetup. Find the log truncation and troubleshoot further based on the information it provides.

    image

    Similar cases can be found in

    Error during installation Exchange 2016 - Microsoft Q&A

    Failed install of Exchange server 2019 W server 2022 - Microsoft Q&A


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.