Exchange 2019 install

Chad Wetli 1 Reputation point
2022-01-19T20:57:30.877+00:00

I spun up a vmware 2019 server and I'm trying to do a very simple install of Exchange 2019. I had requirements that I fulfilled to get the installer going. When it gets to the step Mailbox role: Transport service, it stops with an Error code. I have no idea, so I'm asking for help. Here is the code:

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 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,390 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 142.7K Reputation points MVP
    2022-01-19T21:26:34.507+00:00

    See this old post:
    https://thejespernilsson.wordpress.com/2017/01/14/an-exception-ocurred-while-setting-shared-config-dc/

    Solution: Added the group “<domain>\Exchange Servers” to the user right assignment “Manage auditing and security log” on the custom GPO with the higher Link Order (precedence) and Exchange installed just fine after performing GPUpdate on the Domain Controllers.