I did try most articles on this website and I'm still not able to get the repair run on exchange 2013 ,I did disable Firewall ,IPV6 is enabled on all servers and the server can read the FQDN on the domain controller. There is also no old AD servers and so on.
Herewith message again
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);
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.";
Please let me know what else I can try.