Error installing Exchange 2019

ramin sa 256 Reputation points
2023-02-14T11:03:13.46+00:00

Hi

we get below error when try to install exchange 2019

please give me hand to fix my issue .

Error:
The following error was generated when "$error.Clear(); 
          $maxWait = New-TimeSpan -Minutes 8
          $timeout = Get-Date;
          $timeout = $timeout.Add($maxWait);
          $currTime = Get-Date;
          $successfullySetConfigDC = $false;

          while($currTime -le $timeout)
          {
            $setSharedCDCErrors = @();
            try
            {
              Set-SharedConfigDC -DomainController $RoleDomainController -ErrorVariable setSharedCDCErrors -ErrorAction SilentlyContinue;
              $successfullySetConfigDC = ($setSharedCDCErrors.Count -eq 0);

              if($successfullySetConfigDC)
              {
                break;
              }
              Write-ExchangeSetupLog -Info ("An error ocurred while setting shared config DC. Error: " + $setSharedCDCErrors[0]);
            }
            catch
            {
              Write-ExchangeSetupLog -Info ("An exception ocurred while setting shared config DC. Exception: " + $_.Exception.Message);
            }

            Write-ExchangeSetupLog -Info ("Waiting 30 seconds before attempting again.");
            Start-Sleep -Seconds 30;
            $currTime = Get-Date;
          }

          if( -not $successfullySetConfigDC)
          {
            Write-ExchangeSetupLog -Error "Unable to set shared config DC.";
          }
        " was run: "System.Exception: Unable to set shared config DC.
   at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
   at Microsoft.Exchange.Management.Deployment.WriteExchangeSetupLog.InternalProcessRecord()
   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,330 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,659 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Jame Xu-MSFT 4,176 Reputation points
    2023-02-15T06:48:31.0833333+00:00

    Hi @ramin sa ,

    Please make sure you have installed all prerequisites correctly, and then try to follow the below steps:

    1. Locate Microsoft.Exchange.Directory.TopologyService.exe.config File , By Default It Should Be Under "C:\Program Files\Microsoft\Exchange Server\V15\Bin"
    2. Open NotePad As Administrator & Then Open Microsoft.Exchange.Directory.TopologyService.exe.config File
    3. Locate "Topology MinimumPrefixMatch"
    4. Add MinSuitableServer = "1"
    5. Save The File & Restart Microsoft Exchange Active Directory Topology Services.  

    For details, you could refer to: Exchange 2013 Setup Fails With Error "An exception ocurred while setting shared config DC"


    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.


  2. Michael V 0 Reputation points
    2024-09-27T07:18:25.48+00:00

    To others who may come across this, when searching for solutions.

    Here the issue was the Microsoft Baseline GPO for domain controllers, where the user rights assignements "Debug programs" and "Manage auditing and security log" were overwritten.

    Debug programs must contain:

    • BUILTIN\Administrators
    • Exchange Servers
    • Exchange Trusted Subsystem

    Manage auditing and security log must contain:

    • BUILTIN\Administrators

    Exchange Servers

    The Exchange groups were missing and that caused the issue.

    0 comments No comments

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.