Link to home
Start Free TrialLog in
Avatar of thinkconnected
thinkconnectedFlag 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:
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)".

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 Saif Shaikh
Saif Shaikh
Flag of India image

It guides us to add a parameter MinSuitableServer with value 1 in Microsoft.Exchange.Directory.TopologyService.exe.config File.

Besides, sometimes a strict GPO may cause this issue. Here are some examples:

Exchange 2016 Setup: Unable to set shared config DC
https://www.torivar.com/2017/02/15/exchange-2016-setup-unable-to-set-shared-config-dc/

An exception ocurred while setting shared config DC
https://thejespernilsson.wordpress.com/2017/01/14/an-exception-ocurred-while-setting-shared-config-dc/
ASKER CERTIFIED SOLUTION
Avatar of thinkconnected
thinkconnected
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial