Avatar of thinkconnected
Flag for United States of America

asked on 

Unable to set shared config DC error when installing Exchange 2019

We are trying to install Exchange 2019 on a new VM we built up that is running Server 2019 Std.  The initial installation failed part way through so I reinstalled the 2012 C++ libraries as this is what it was not happy about.  After this we re-ran the installation.  The installer confirmed that the installation was interrupted  so it resumed.  After coming to the mailbox transport service installation (step 6) the installation would failed with the following 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 = @();
              Set-SharedConfigDC -DomainController $RoleDomainController -ErrorVariable setSharedCDCErrors -ErrorAction SilentlyContinue;
              $successfullySetConfigDC = ($setSharedCDCErrors.Count -eq 0);

              Write-ExchangeSetupLog -Info ("An error ocurred while setting shared config DC. Error: " + $setSharedCDCErrors[0]);
              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)".

We have tried several attempted fixes such as updating the Microsoft.Exchange.Directory.TopologyService.exe.config file, disabling the Windows firewall, disabling IPV6, running the installer as administrator, basically everything we can find on the web.  I see this has happened for other versions of Exchange as well, but no fixes seem to work.  Please let me know if you have further questions or have any answers, thank you for your help!

Avatar of undefined
Last Comment

8/22/2022 - Mon