thinkconnected
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($successfullySetConfigD C)
{
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.Configu ration.Tas ks.Task.Th rowError(E xception exception, ErrorCategory errorCategory, Object target, String helpUrl)
at Microsoft.Exchange.Managem ent.Deploy ment.Write ExchangeSe tupLog.Int ernalProce ssRecord()
at Microsoft.Exchange.Configu ration.Tas ks.Task.<P rocessReco rd>b__91_1 ()
at Microsoft.Exchange.Configu ration.Tas ks.Task.In vokeRetrya bleFunc(St ring funcName, Action func, Boolean terminatePipelineIfFailed) ".
We have tried several attempted fixes such as updating the Microsoft.Exchange.Directo ry.Topolog yService.e xe.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!
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
if($successfullySetConfigD
{
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.Configu
at Microsoft.Exchange.Managem
at Microsoft.Exchange.Configu
at Microsoft.Exchange.Configu
We have tried several attempted fixes such as updating the Microsoft.Exchange.Directo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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/