From 2ac4106ef71d8bbc6ccc0e0801f9b1d182441cc4 Mon Sep 17 00:00:00 2001 From: David Paulson Date: Thu, 21 Mar 2024 10:59:38 -0500 Subject: [PATCH 1/2] Add Setup Mode to Setup Log Reviewer --- Setup/Shared/SetupLogReviewerFunctions.ps1 | 7 +++++++ Setup/Shared/SetupLogReviewerLogic.ps1 | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Setup/Shared/SetupLogReviewerFunctions.ps1 b/Setup/Shared/SetupLogReviewerFunctions.ps1 index 4863a84aa3..b6e3db8a87 100644 --- a/Setup/Shared/SetupLogReviewerFunctions.ps1 +++ b/Setup/Shared/SetupLogReviewerFunctions.ps1 @@ -238,6 +238,7 @@ function Get-SetupLogReviewer { LastSetupRunLine = $validSetupLog.LineNumber User = $currentLogOnUser.Matches.Groups[1].Value SetupRunDate = $runDate + SetupMode = "Unknown" LocalBuildNumber = [string]::Empty SetupBuildNumber = $setupBuildNumber } @@ -254,5 +255,11 @@ function Get-SetupLogReviewer { $logReviewer.LocalBuildNumber = $backupLocalInstall.Matches.Groups[1].Value } + $setupMode = $logReviewer | SelectStringLastRunOfExchangeSetup -Pattern "Command Line Parameter Name='mode', Value='(.+)'\." + + if ($null -ne $setupMode) { + $logReviewer.SetupMode = $setupMode.Matches.Groups[1].Value + } + return $logReviewer } diff --git a/Setup/Shared/SetupLogReviewerLogic.ps1 b/Setup/Shared/SetupLogReviewerLogic.ps1 index 8988780287..a76d000545 100644 --- a/Setup/Shared/SetupLogReviewerLogic.ps1 +++ b/Setup/Shared/SetupLogReviewerLogic.ps1 @@ -48,6 +48,7 @@ function Invoke-SetupLogReviewer { $ranDate = $setupLogReviewer.SetupRunDate if ($ranDate -lt ([DateTime]::Now.AddDays(-14))) { $color = "Yellow" } + Write-Host "Setup Mode: $($setupLogReviewer.SetupMode)" Write-Host "Setup.exe Run Date: $ranDate" -ForegroundColor $color Write-Host "Setup.exe Build Number: $($setupLogReviewer.SetupBuildNumber)" @@ -58,9 +59,10 @@ function Invoke-SetupLogReviewer { $localBuild = New-Object System.Version $setupLogReviewer.LocalBuildNumber -ErrorAction Stop $setupBuild = New-Object System.Version $setupLogReviewer.SetupBuildNumber -ErrorAction Stop - if ($localBuild -eq $setupBuild -or + if (($localBuild -eq $setupBuild -or ($localBuild.Minor -eq $setupBuild.Minor -and - $localBuild.Build -eq $setupBuild.Build)) { + $localBuild.Build -eq $setupBuild.Build)) -and + ($setupLogReviewer.SetupMode -ne "Install")) { Write-Host "Same build number detected..... if using powershell.exe to start setup. Make sure you do '.\setup.exe'" -ForegroundColor "Red" } } catch { From 0ca28562d5e02c46c7316f722ec2c6cf4803518c Mon Sep 17 00:00:00 2001 From: David Paulson Date: Thu, 21 Mar 2024 11:08:13 -0500 Subject: [PATCH 2/2] Add Test for Shared Config DC --- .../FindContext/Test-SharedConfigDc.ps1 | 72 +++ Setup/Shared/SetupLogReviewerLogic.ps1 | 2 + .../ExchangeSetup_ADServiceNotStarted.log | 554 +++++++++++++++++ .../ExchangeSetup_NoSuitableDC.log | 580 ++++++++++++++++++ Setup/Tests/SetupLogReviewer.Tests.ps1 | 32 + 5 files changed, 1240 insertions(+) create mode 100644 Setup/SetupLogReviewer/Checks/FindContext/Test-SharedConfigDc.ps1 create mode 100644 Setup/Tests/KnownIssues/ExchangeSetup_ADServiceNotStarted.log create mode 100644 Setup/Tests/KnownIssues/ExchangeSetup_NoSuitableDC.log diff --git a/Setup/SetupLogReviewer/Checks/FindContext/Test-SharedConfigDc.ps1 b/Setup/SetupLogReviewer/Checks/FindContext/Test-SharedConfigDc.ps1 new file mode 100644 index 0000000000..0fa6388b2f --- /dev/null +++ b/Setup/SetupLogReviewer/Checks/FindContext/Test-SharedConfigDc.ps1 @@ -0,0 +1,72 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + +. $PSScriptRoot\..\New-ActionPlan.ps1 +. $PSScriptRoot\..\New-ErrorContext.ps1 +function Test-SharedConfigDc { + [CmdletBinding()] + param( + [Parameter(ValueFromPipeline = $true)] + [object] + $SetupLogReviewer + ) + process { + Write-Verbose "Calling: $($MyInvocation.MyCommand)" + $sharedConfigDc = $SetupLogReviewer | SelectStringLastRunOfExchangeSetup "\[ERROR\] Unable to set shared config DC" + $errorCausedFailure = $SetupLogReviewer | SelectStringLastRunOfExchangeSetup "\[ERROR-REFERENCE\] Id=AllADRolesCommonServiceControl___ee47ab1c06fb47919398e2e95ed99c6c" + $serviceStartedLine = "It appears that the Microsoft Exchange Active Directory Topology service was started on the server and we ran into a different inner exception." + $noteCommon = "NOTE: It is common that the service will not stay started after the initial failure, make sure you keep the Microsoft Exchange Active Directory Topology service running during the entire setup process" + $genericActionPlan = @("Carefully read the inner exception and review the application logs to determine why we can't connect to Active Directory.", + [System.Environment]::NewLine, + " $noteCommon") + + if ($null -ne $sharedConfigDc -and + $null -ne $errorCausedFailure) { + # Now that we have this particular error, what matters is the inner exception. + # cSpell:disable + $innerError = $SetupLogReviewer | SelectStringLastRunOfExchangeSetup "\] An error ocurred while setting shared config DC\. Error: (.+)" + $innerExceptionCatch = $SetupLogReviewer | SelectStringLastRunOfExchangeSetup "\] An exception ocurred while setting shared config DC\. Exception: (.+)" + # cSpell:enable + + if ($null -ne $innerError) { + $innerErrorValue = $innerError.Matches.Groups[1].Value + $sharedConfigDc.Line + [System.Environment]::NewLine + "Inner Exception: $innerErrorValue" | New-ErrorContext + + # cSpell:disable + # coudn't spelled incorrectly in code. + $serviceStopString = "Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'." + # cSpell:enable + if ($innerErrorValue -eq $serviceStopString) { + New-ActionPlan @( + "1. The service needs to be started prior to setup & during setup. Setup could be stopping and disabling this service preventing setup from working.", + " MAKE SURE IT IS RUNNING DURING THE WHOLE SETUP AFTER COPYING FILES", + "2. After starting the service, make sure it stays running and check the application logs to make sure there are no errors.", + " We could have failed the first time because we couldn't find a suitable domain controller for various number of reasons.", + " If those errors are still there after starting the service, you need to address those prior to trying to run setup again." + ) + } else { + New-ActionPlan @( + $serviceStartedLine, + $genericActionPlan + ) + } + } elseif ($null -ne $innerExceptionCatch) { + $innerExceptionCatchValue = $innerExceptionCatch.Matches.Groups[1].Value + $sharedConfigDc.Line + [System.Environment]::NewLine + "Inner Exception: $innerExceptionCatchValue" | New-ErrorContext + + New-ActionPlan @( + $serviceStartedLine, + $genericActionPlan + ) + } else { + $sharedConfigDc.Line | New-ErrorContext + New-ActionPlan @( + "Determined that we found an issue with trying to set the Shared Config DC, but was unable to get find the inner exception.", + "Start the Microsoft Exchange Active Directory Topology service and see if there are any errors in the application log related to the service after it has started.", + "Troubleshoot those error messages prior to trying to run setup again.", + $noteCommon + ) + } + } + } +} diff --git a/Setup/Shared/SetupLogReviewerLogic.ps1 b/Setup/Shared/SetupLogReviewerLogic.ps1 index a76d000545..8195d6062d 100644 --- a/Setup/Shared/SetupLogReviewerLogic.ps1 +++ b/Setup/Shared/SetupLogReviewerLogic.ps1 @@ -11,6 +11,7 @@ . $PSScriptRoot\..\SetupLogReviewer\Checks\FindContext\Test-KnownMsiIssuesCheck.ps1 . $PSScriptRoot\..\SetupLogReviewer\Checks\FindContext\Test-OtherWellKnownObjects.ps1 . $PSScriptRoot\..\SetupLogReviewer\Checks\FindContext\Test-PrerequisiteCheck.ps1 +. $PSScriptRoot\..\SetupLogReviewer\Checks\FindContext\Test-SharedConfigDc.ps1 . $PSScriptRoot\..\SetupLogReviewer\Checks\FindContext\Write-LastErrorInformation.ps1 . $PSScriptRoot\..\SetupLogReviewer\Checks\Write-Result.ps1 function Invoke-SetupLogReviewer { @@ -93,6 +94,7 @@ function Invoke-SetupLogReviewer { "Test-OtherWellKnownObjects", "Test-IsHybridObjectFoundOnPremises", "Test-InvalidWKObjectTargetException", + "Test-SharedConfigDc", "Write-LastErrorInformation" ) } diff --git a/Setup/Tests/KnownIssues/ExchangeSetup_ADServiceNotStarted.log b/Setup/Tests/KnownIssues/ExchangeSetup_ADServiceNotStarted.log new file mode 100644 index 0000000000..fdc929e9dc --- /dev/null +++ b/Setup/Tests/KnownIssues/ExchangeSetup_ADServiceNotStarted.log @@ -0,0 +1,554 @@ +[03/21/2024 16:23:15.0265] [0] ********************************************** +[03/21/2024 16:23:15.0281] [0] Starting Microsoft Exchange Server 2019 Setup +[03/21/2024 16:23:15.0281] [0] ********************************************** +[03/21/2024 16:23:15.0281] [0] Local time zone: (UTC-05:00) Eastern Time (US & Canada). +[03/21/2024 16:23:15.0281] [0] Operating system version: Microsoft Windows NT 6.2.9200.0. +[03/21/2024 16:23:15.0281] [0] Setup version: 15.2.1544.4. +[03/21/2024 16:23:15.0281] [0] Logged on user: SOLO\Han. +[03/21/2024 16:23:15.0328] [0] Command Line Parameter Name='sourcedir', Value='D:\'. +[03/21/2024 16:23:15.0328] [0] Command Line Parameter Name='mode', Value='Install'. +[03/21/2024 16:23:15.0328] [0] RuntimeAssembly was started with the following command: '/sourcedir:D: /mode:Install'. +[03/21/2024 16:23:15.0856] [0] The following roles are installed: AdminToolsRole +[03/21/2024 16:23:17.0939] [0] Setup is choosing the domain controller to use +[03/21/2024 16:23:18.0183] [0] Setup is choosing a local domain controller... +[03/21/2024 16:23:19.0138] [0] Setup has chosen the local domain controller DC1.Solo.local for initial queries +[03/21/2024 16:23:19.0216] [0] PrepareAD has been run, and has replicated to this domain controller; so setup will use DC1.Solo.local +[03/21/2024 16:23:19.0216] [0] Setup is choosing a global catalog... +[03/21/2024 16:23:19.0232] [0] Setup has chosen the global catalog server DC1.Solo.local. +[03/21/2024 16:23:19.0232] [0] Setup will use the domain controller 'DC1.Solo.local'. +[03/21/2024 16:23:19.0232] [0] Setup will use the global catalog 'DC1.Solo.local'. +[03/21/2024 16:23:19.0247] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Solo,DC=local'. +[03/21/2024 16:23:19.0247] [0] Exchange organization container for the organization is 'CN=SoloORG,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Solo,DC=local'. +[03/21/2024 16:23:19.0263] [0] Setup will search for an Exchange Server object for the local machine with name 'ExSvr1'. +[03/21/2024 16:23:19.0482] [0] Exchange Server object found : 'CN=ExSvr1,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=SoloORG,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Solo,DC=local'. +[03/21/2024 16:23:19.0482] [0] The following roles have been unpacked: BridgeheadRole ClientAccessRole MailboxRole FrontendTransportRole AdminToolsRole CafeRole +[03/21/2024 16:23:19.0482] [0] The following datacenter roles are unpacked: +[03/21/2024 16:23:19.0482] [0] The following roles are installed: AdminToolsRole +[03/21/2024 16:23:19.0482] [0] The local server has some Exchange files installed. +[03/21/2024 16:23:19.0497] [0] Server Name=ExSvr1 +[03/21/2024 16:23:19.0497] [0] Setup will use the path 'D:\' for installing Exchange. +[03/21/2024 16:23:19.0497] [0] Setup will discover the installed roles from server object 'CN=ExSvr1,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=SoloORG,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Solo,DC=local'. +[03/21/2024 16:23:19.0497] [0] 'BridgeheadRole' is installed on the server object. +[03/21/2024 16:23:19.0497] [0] The installation mode is set to: 'Install'. +[03/21/2024 16:23:24.0055] [0] An Exchange organization with name 'SoloORG' was found in this forest. +[03/21/2024 16:23:24.0055] [0] Active Directory Initialization status : 'True'. +[03/21/2024 16:23:24.0055] [0] Schema Update Required Status : 'False'. +[03/21/2024 16:23:24.0055] [0] Organization Configuration Update Required Status : 'False'. +[03/21/2024 16:23:24.0055] [0] Domain Configuration Update Required Status : 'False'. +[03/21/2024 16:23:24.0055] [0] The locally installed version is 15.2.1544.4. +[03/21/2024 16:23:24.0055] [0] Exchange Installation Directory : 'C:\Program Files\Microsoft\Exchange Server\V15'. +[03/21/2024 16:23:24.0086] [0] Applying default role selection state +[03/21/2024 16:23:24.0117] [0] Setup is determining what organization-level operations to perform. +[03/21/2024 16:23:24.0117] [0] Because the value was specified, setup is setting the argument OrganizationName to the value SoloORG. +[03/21/2024 16:23:24.0117] [0] Setup will run from path 'C:\Program Files\Microsoft\Exchange Server\V15\'. +[03/21/2024 16:23:24.0149] [0] InstallModeDataHandler has 12 DataHandlers +[03/21/2024 16:23:24.0149] [0] RootDataHandler has 1 DataHandlers +[03/21/2024 16:23:24.0305] [0] CurrentResult launcherbase.maincore:90: 0 +[03/21/2024 16:23:24.0524] [0] Finished loading screen IncompleteInstallationDetectedPage. +[03/21/2024 16:23:26.0540] [0] Setup is determining what organization-level operations to perform. +[03/21/2024 16:23:26.0540] [0] Because the value was specified, setup is setting the argument OrganizationName to the value SoloORG. +[03/21/2024 16:23:26.0540] [0] Setup will run from path 'C:\Program Files\Microsoft\Exchange Server\V15\'. +[03/21/2024 16:23:26.0540] [0] InstallModeDataHandler has 12 DataHandlers +[03/21/2024 16:23:26.0540] [0] RootDataHandler has 1 DataHandlers +[03/21/2024 16:23:26.0571] [0] ************** +[03/20/2024 20:44:39.0120] [1] Evaluated [Setting:ComputerNameDnsFullyQualified] [HasException:False] [Value:"ExSvr1.Solo.local"] [ParentValue:""] [Thread:109] [Duration:00:00:00] +[03/21/2024 16:26:25.0271] [1] Updating performance counter strings for SharedmailboxSentItemsAgentPerformanceCounters.ini +[03/21/2024 16:26:25.0271] [1] Updating performance counter strings for SmsDeliveryAgentDeliveryPerfCounters.ini +[03/21/2024 16:26:25.0287] [1] Updating performance counter strings for SmtpAvailabilityPerfCounters.ini +[03/21/2024 16:26:25.0302] [1] Updating performance counter strings for SmtpConnectionPoolPerfCounters.ini +[03/21/2024 16:26:25.0302] [1] Updating performance counter strings for SmtpErrorsPerfCounters.ini +[03/21/2024 16:26:25.0302] [1] Updating performance counter strings for SmtpProxyPerfCounters.ini +[03/21/2024 16:26:25.0318] [1] Updating performance counter strings for SmtpReceivePerfCounters.ini +[03/21/2024 16:26:25.0349] [1] Updating performance counter strings for SmtpReceivePerformancePerfCounters.ini +[03/21/2024 16:26:25.0349] [1] Updating performance counter strings for SmtpResponseCodePerfCounters.ini +[03/21/2024 16:26:25.0349] [1] Updating performance counter strings for SmtpResponseSubCodePerfCounters.ini +[03/21/2024 16:26:25.0349] [1] Updating performance counter strings for SmtpSendPerfCounters.ini +[03/21/2024 16:26:25.0365] [1] Updating performance counter strings for SourceDatabasePerfmon.ini +[03/21/2024 16:26:25.0380] [1] Updating performance counter strings for StatefulComponentPerformanceCounters.ini +[03/21/2024 16:26:25.0380] [1] Updating performance counter strings for StorageRESTApiPerfCounters.ini +[03/21/2024 16:26:25.0380] [1] Updating performance counter strings for StoreDriverDeliveryAgentPerfCounters.ini +[03/21/2024 16:26:25.0396] [1] Updating performance counter strings for StoreDriverDeliveryDatabasePerfCounters.ini +[03/21/2024 16:26:25.0412] [1] Updating performance counter strings for StoreDriverDeliveryPerfCounters.ini +[03/21/2024 16:26:25.0427] [1] Updating performance counter strings for StoreDriverSubmissionAgentPerfCounters.ini +[03/21/2024 16:26:25.0443] [1] Updating performance counter strings for StoreDriverSubmissionDatabasePerfCounters.ini +[03/21/2024 16:26:25.0458] [1] Updating performance counter strings for StoreDriverSubmissionDirectDeliveryPerfCounters.ini +[03/21/2024 16:26:25.0458] [1] Updating performance counter strings for StoreDriverSubmissionPerfCounters.ini +[03/21/2024 16:26:25.0474] [1] Updating performance counter strings for StoreObjectsServicePerformanceCounters.ini +[03/21/2024 16:26:25.0474] [1] Updating performance counter strings for StsUpdatePerfCounters.ini +[03/21/2024 16:26:25.0490] [1] Updating performance counter strings for SubmitHelperPerfCounters.ini +[03/21/2024 16:26:25.0505] [1] Updating performance counter strings for SupervisoryReviewAgentPerfCounters.ini +[03/21/2024 16:26:25.0505] [1] Updating performance counter strings for SupervisoryReviewTimeBasedAssistantPerfCounters.ini +[03/21/2024 16:26:25.0505] [1] Updating performance counter strings for SyncDeliveryPerfCounters.ini +[03/21/2024 16:26:25.0521] [1] Updating performance counter strings for ThrottlingPerformanceCounters.ini +[03/21/2024 16:26:25.0521] [1] Updating performance counter strings for ThrottlingServiceClientPerformanceCounters.ini +[03/21/2024 16:26:25.0537] [1] Updating performance counter strings for TopologyServicePerfCounters.ini +[03/21/2024 16:26:25.0552] [1] Updating performance counter strings for TransportApprovalDeliveryPerfCounters.ini +[03/21/2024 16:26:25.0568] [1] Updating performance counter strings for TransportConfigurationPerfCounters.ini +[03/21/2024 16:26:25.0568] [1] Updating performance counter strings for TransportCTSFlowPerformanceCounters.ini +[03/21/2024 16:26:25.0583] [1] Updating performance counter strings for TransportGrayExceptionCounters.ini +[03/21/2024 16:26:25.0583] [1] Updating performance counter strings for TransportHttpPerfCounters.ini +[03/21/2024 16:26:25.0599] [1] Updating performance counter strings for TransportServerAlivePerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for TransportStreamingOpticsServerAlivePerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for TransportSyncManagerByDatabasePerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for TransportSyncManagerByProtocolPerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for TransportSyncManagerBySlaPerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for TransportSyncManagerPerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for TransportSyncWorkerCorePerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for TransportSyncWorkerFrameworkPerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for UnifiedAuditLogUploaderPerfCounters.ini +[03/21/2024 16:26:25.0615] [1] Updating performance counter strings for UnifiedGroupPostSentItemAgentPerformanceCounters.ini +[03/21/2024 16:26:25.0630] [1] Updating performance counter strings for UnifiedPolicySyncPerfCounters.ini +[03/21/2024 16:26:25.0630] [1] Updating performance counter strings for UnJournalingPerfCounters.ini +[03/21/2024 16:26:25.0646] [1] Updating performance counter strings for UserMailboxSentItemsAgentPerformanceCounters.ini +[03/21/2024 16:26:25.0646] [1] Updating performance counter strings for UserThrottlingPerformanceCounters.ini +[03/21/2024 16:26:25.0662] [1] Updating performance counter strings for UserWorkloadManagerPerformanceCounters.ini +[03/21/2024 16:26:25.0677] [1] Updating performance counter strings for WeveMessageAssistantPerformanceCounters.ini +[03/21/2024 16:26:25.0693] [1] Updating performance counter strings for WorkerTaskFrameworkPerfCounters.ini +[03/21/2024 16:26:25.0708] [1] Updating performance counter strings for WorkloadManagementPerformanceCounters.ini +[03/21/2024 16:26:25.0708] [1] Updating performance counter strings for WorkloadPerformanceCounters.ini +[03/21/2024 16:26:25.0724] [1] Updating performance counter strings for WsPerformanceCounters.ini +[03/21/2024 16:26:26.0115] [1] Finished updating performance counter strings +[03/21/2024 16:27:34.0548] [1] Beginning to update performance counter strings +[03/21/2024 16:27:34.0548] [1] Updating performance counter strings for dscperf.ini +[03/21/2024 16:27:34.0595] [1] Updating performance counter strings for eseperf.ini +[03/21/2024 16:27:34.0853] [1] Finished updating performance counter strings +[03/21/2024 16:27:40.0540] [1] Setup has started to update MFL files. +[03/21/2024 16:27:40.0572] [1] Changing LCID: ms_009 to ms_409 in C:\Program Files\Microsoft\Exchange Server\V15\Bin\en\Exchange.mfl. +[03/21/2024 16:27:40.0964] [1] Setup has finished updating MFL files. +[03/21/2024 16:27:40.0964] [1] Setup has started to copy the OWA language pack files. +[03/21/2024 16:27:40.0964] [1] The version of the language packs matches the version of the install; no need to copy OWA langauge pack files. +[03/21/2024 16:27:40.0964] [1] Setup has finished copying the OWA langauge pack files. +[03/21/2024 16:27:40.0964] [1] Ending processing install-Languages +[03/21/2024 16:27:40.0980] [0] ************** +[03/21/2024 16:27:40.0980] [0] Setup will run the task 'Install-BridgeheadRole' +[03/21/2024 16:27:40.0980] [1] Setup launched task 'Install-BridgeheadRole -DomainController 'DC1.Solo.local' -updatesdir $null -LanguagePacksPath 'D:\\' -StartTransportService $true -DisableAMFiltering $false' +[03/21/2024 16:27:40.0985] [1] Active Directory session settings for 'Install-BridgeheadRole' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:27:40.0985] [1] User specified parameters: -DomainController:'DC1.Solo.local' -UpdatesDir:$null -LanguagePacksPath:'D:\\' -StartTransportService:'True' -DisableAMFiltering:'False' +[03/21/2024 16:27:40.0985] [1] Beginning processing Install-BridgeheadRole +[03/21/2024 16:27:41.0001] [1] Attempting Install for BridgeheadRole. +[03/21/2024 16:27:41.0001] [1] The following roles are installed: AdminToolsRole +[03/21/2024 16:27:41.0001] [1] The following roles are current: AdminToolsRole +[03/21/2024 16:27:41.0017] [1] Reading components for the role 'AdminToolsRole' from 'res://AdminToolsRoleDefinition.xml' +[03/21/2024 16:27:41.0017] [1] Found 6 components +[03/21/2024 16:27:41.0017] [1] Loaded component 'All Roles Common First - Run Once' with 3 task information blocks from 'res://AllRolesCommonFirst_RunOnce.xml' +[03/21/2024 16:27:41.0032] [1] Loaded component 'All Roles Common First' with 8 task information blocks from 'res://AllRolesCommonFirst.xml' +[03/21/2024 16:27:41.0032] [1] Loaded component 'Admin Tools Configuration' with 1 task information blocks from 'res://AdminToolsComponent.xml' +[03/21/2024 16:27:41.0032] [1] Loaded component 'Datacenter File Copy Component' with 1 task information blocks from 'res://DatacenterFileCopyComponent.xml' +[03/21/2024 16:27:41.0032] [1] Loaded component 'Datacenter Admin Tools Component' with 1 task information blocks from 'res://DatacenterAdminToolsComponent.xml' +[03/21/2024 16:27:41.0032] [1] Loaded component 'All Roles Common Last' with 6 task information blocks from 'res://AllRolesCommonLast.xml' +[03/21/2024 16:27:41.0032] [1] Reading components for the role 'BridgeheadRole' from 'res://BridgeheadRoleDefinition.xml' +[03/21/2024 16:27:41.0048] [1] Found 57 components +[03/21/2024 16:27:41.0048] [1] Loaded component 'All Roles Common First - Run Once' with 3 task information blocks from 'res://AllRolesCommonFirst_RunOnce.xml' +[03/21/2024 16:27:41.0048] [1] Loaded component 'All Roles Common First' with 8 task information blocks from 'res://AllRolesCommonFirst.xml' +[03/21/2024 16:27:41.0048] [1] Loaded component 'All Roles Precompile Management Binaries' with 44 task information blocks from 'res://AllRolesPrecompileManagementBinaries.xml' +[03/21/2024 16:27:41.0048] [1] Loaded component 'Bridgehead Permissions Configuration' with 1 task information blocks from 'res://BridgeheadLocalPermissionsComponent.xml' +[03/21/2024 16:27:41.0064] [1] Loaded component 'Common Perf Counters ' with 1 task information blocks from 'res://CommonPerfCountersComponent.xml' +[03/21/2024 16:27:41.0064] [1] Loaded component 'Datacenter Exchange Streaming Optics component' with 1 task information blocks from 'res://DatacenterMSExchangeStreamingOptics.xml' +[03/21/2024 16:27:41.0064] [1] Loaded component 'Datacenter MSExchange Transport Streaming Optics' with 1 task information blocks from 'res://DatacenterMSExchangeTransportStreamingOptics.xml' +[03/21/2024 16:27:41.0064] [1] Loaded component 'Provision Server' with 12 task information blocks from 'res://ProvisionServerComponent.xml' +[03/21/2024 16:27:41.0064] [1] Loaded component 'All Active-Directory Roles Common' with 14 task information blocks from 'res://AllADRolesCommon.xml' +[03/21/2024 16:27:41.0064] [1] Loaded component 'Health Manager' with 12 task information blocks from 'res://HealthManagerComponent.xml' +[03/21/2024 16:27:41.0079] [1] Loaded component 'Exchange 2003 Pseudo-MTA Configuration' with 1 task information blocks from 'res://LegacyMTAComponent.xml' +[03/21/2024 16:27:41.0079] [1] Loaded component 'Exchange 2003 SMTP VSI Configuration' with 1 task information blocks from 'res://LegacySMTPComponent.xml' +[03/21/2024 16:27:41.0079] [1] Loaded component 'Transport Perf Counters' with 1 task information blocks from 'res://TransportPerfCountersComponent.xml' +[03/21/2024 16:27:41.0079] [1] Loaded component 'Enable RPC-EPMAP firewall exception' with 1 task information blocks from 'res://RpcEpmapFirewallException.xml' +[03/21/2024 16:27:41.0079] [1] Loaded component 'Enable Remote IIS Admin RPC firewall exception' with 1 task information blocks from 'res://RemoteIISAdminFirewallException.xml' +[03/21/2024 16:27:41.0079] [1] Loaded component 'Bridgehead Role Setter' with 3 task information blocks from 'res://BridgeheadRoleSetterComponent.xml' +[03/21/2024 16:27:41.0095] [1] Loaded component 'Transport Common Configuration' with 23 task information blocks from 'res://TransportCommonComponent.xml' +[03/21/2024 16:27:41.0095] [1] Loaded component 'Transport Common Configuration' with 0 task information blocks from 'res://BridgeHeadAndGatewayTransportCommonComponent.xml' +[03/21/2024 16:27:41.0095] [1] Loaded component 'Datacenter Bridgehead AMService component' with 5 task information blocks from 'res://DatacenterBridgeheadAMServiceComponent.xml' +[03/21/2024 16:27:41.0095] [1] Loaded component 'Datacenter Bridgehead Dedicated AMService component' with 4 task information blocks from 'res://DatacenterBridgeheadDedicatedAMServiceComponent.xml' +[03/21/2024 16:27:41.0095] [1] Loaded component 'Bridgehead Perf Counters' with 1 task information blocks from 'res://BridgeheadPerfCountersComponent.xml' +[03/21/2024 16:27:41.0111] [1] Loaded component 'Bridgehead Configuration' with 56 task information blocks from 'res://BridgeheadComponent.xml' +[03/21/2024 16:27:41.0111] [1] Loaded component 'Transport Log Search Service' with 2 task information blocks from 'res://TransportLogSearchServiceComponent.xml' +[03/21/2024 16:27:41.0111] [1] Loaded component 'Data Storage Configuration' with 1 task information blocks from 'res://DataStorageComponent.xml' +[03/21/2024 16:27:41.0111] [1] Loaded component 'Monitoring Service Configuration' with 3 task information blocks from 'res://MonitoringComponent.xml' +[03/21/2024 16:27:41.0111] [1] Loaded component 'Search Foundation Service Configuration' with 2 task information blocks from 'res://SearchFoundationComponent.xml' +[03/21/2024 16:27:41.0111] [1] Loaded component 'Service Host Configuration' with 3 task information blocks from 'res://ServiceHostComponent.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'Protected Service Host Configuration' with 4 task information blocks from 'res://ProtectedServiceHostComponent.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'BridgeheadExchangeCertificate' with 1 task information blocks from 'res://BridgeheadExchangeCertificate.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'PowerShell Configuration' with 6 task information blocks from 'res://PowerShellComponent.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'WSMan IIS Hosting Configuration' with 1 task information blocks from 'res://WSManIISHostingConfigurationComponent.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'Active Directory Topology Service Configuration' with 3 task information blocks from 'res://AllADRolesCommonServiceControl.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'Malware Filtering Configuration' with 1 task information blocks from 'res://MalwareFilteringComponent.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'Datacenter Bridgehead Antimalware component' with 6 task information blocks from 'res://DatacenterBridgeheadAntimalwareComponent.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'Transport Common Service Control' with 1 task information blocks from 'res://TransportCommonServiceControl.xml' +[03/21/2024 16:27:41.0126] [1] Loaded component 'Service Host Service Control' with 1 task information blocks from 'res://ServiceHostServiceControl.xml' +[03/21/2024 16:27:41.0142] [1] Loaded component 'Protected Service Host Service Control' with 1 task information blocks from 'res://ProtectedServiceHostServiceControl.xml' +[03/21/2024 16:27:41.0142] [1] Loaded component 'Datacenter Common Configuration' with 8 task information blocks from 'res://DatacenterAllRolesCommonFirst.xml' +[03/21/2024 16:27:41.0142] [1] Loaded component 'Ffo Datacenter Common Configuration First' with 1 task information blocks from 'res://FfoDatacenterAllRolesCommonFirst.xml' +[03/21/2024 16:27:41.0142] [1] Loaded component 'Datacenter ServiceHost Configuration' with 2 task information blocks from 'res://DatacenterServiceHostComponent.xml' +[03/21/2024 16:27:41.0142] [1] Loaded component 'Datacenter Live ID perf Counters' with 1 task information blocks from 'res://DatacenterLiveIDPerfCountersComponent.xml' +[03/21/2024 16:27:41.0142] [1] Loaded component 'Datacenter Bridgehead Configuration' with 22 task information blocks from 'res://DatacenterBridgeheadComponent.xml' +[03/21/2024 16:27:41.0157] [1] Loaded component 'Datacenter Bridgehead Atp Configuration' with 1 task information blocks from 'res://DatacenterBridgeheadAtpComponent.xml' +[03/21/2024 16:27:41.0157] [1] Loaded component 'AntiSpam Spam Filter Configuration' with 8 task information blocks from 'res://DatacenterBridgeheadAntispamComponent.xml' +[03/21/2024 16:27:41.0157] [1] Loaded component 'HubTransport Ffo only component' with 37 task information blocks from 'res://FfoDatacenterBridgeheadComponent.xml' +[03/21/2024 16:27:41.0157] [1] Loaded component 'HubTransport ExO only component' with 28 task information blocks from 'res://ExODatacenterBridgeheadComponent.xml' +[03/21/2024 16:27:41.0157] [1] Loaded component 'Datacenter Bridgehead Perf Counters' with 1 task information blocks from 'res://DatacenterBridgeheadPerfCountersComponent.xml' +[03/21/2024 16:27:41.0157] [1] Loaded component 'Datacenter Bridgehead Perf Counters Exo Only Component' with 3 task information blocks from 'res://ExoDatacenterBridgeheadPerfCountersComponent.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'Datacenter All Roles LiveID RPS Configuration' with 4 task information blocks from 'res://DatacenterLiveIdRpsComponent.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'Datacenter Diagnostics Component' with 1 task information blocks from 'res://DatacenterDiagnosticsComponent.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'Diagnostics Component' with 3 task information blocks from 'res://DiagnosticsComponent.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'Datacenter Optics Configuration' with 1 task information blocks from 'res://DatacenterOpticsComponent.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'ProcessUtilizationManager Component' with 2 task information blocks from 'res://DatacenterProcessUtilizationManagerComponent.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'Ffo datacenter monitoring component' with 1 task information blocks from 'res://FfoDatacenterMonitoringComponent.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'Datacenter Common Configuration Last' with 13 task information blocks from 'res://DatacenterAllRolesCommonLast.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'Ffo Datacenter Common Configuration Last' with 3 task information blocks from 'res://FfoDatacenterAllRolesCommonLast.xml' +[03/21/2024 16:27:41.0173] [1] Loaded component 'All Roles Common Last' with 6 task information blocks from 'res://AllRolesCommonLast.xml' +[03/21/2024 16:27:41.0189] [1] The component 'All Roles Common First - Run Once' is shared with a role that's already configured. +[03/21/2024 16:27:41.0189] [1] Adding 'All Roles Common First' because it's marked AlwaysExecute. +[03/21/2024 16:27:41.0189] [1] Adding unique component 'All Roles Precompile Management Binaries' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Bridgehead Permissions Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Common Perf Counters ' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Exchange Streaming Optics component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter MSExchange Transport Streaming Optics' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Provision Server' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'All Active-Directory Roles Common' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Health Manager' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Exchange 2003 Pseudo-MTA Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Exchange 2003 SMTP VSI Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Transport Perf Counters' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Enable RPC-EPMAP firewall exception' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Enable Remote IIS Admin RPC firewall exception' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Bridgehead Role Setter' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Transport Common Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Transport Common Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Bridgehead AMService component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Bridgehead Dedicated AMService component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Bridgehead Perf Counters' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Bridgehead Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Transport Log Search Service' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Data Storage Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Monitoring Service Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Search Foundation Service Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Service Host Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Protected Service Host Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'BridgeheadExchangeCertificate' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'PowerShell Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'WSMan IIS Hosting Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Active Directory Topology Service Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Malware Filtering Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Bridgehead Antimalware component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Transport Common Service Control' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Service Host Service Control' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Protected Service Host Service Control' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Common Configuration' +[03/21/2024 16:27:41.0189] [1] Adding 'Ffo Datacenter Common Configuration First' because it's marked AlwaysExecute. +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter ServiceHost Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Live ID perf Counters' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Bridgehead Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Bridgehead Atp Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'AntiSpam Spam Filter Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'HubTransport Ffo only component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'HubTransport ExO only component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Bridgehead Perf Counters' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Bridgehead Perf Counters Exo Only Component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter All Roles LiveID RPS Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Diagnostics Component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Diagnostics Component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Datacenter Optics Configuration' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'ProcessUtilizationManager Component' +[03/21/2024 16:27:41.0189] [1] Adding unique component 'Ffo datacenter monitoring component' +[03/21/2024 16:27:41.0189] [1] Adding 'Datacenter Common Configuration Last' because it's marked AlwaysExecute. +[03/21/2024 16:27:41.0189] [1] Adding 'Ffo Datacenter Common Configuration Last' because it's marked AlwaysExecute. +[03/21/2024 16:27:41.0189] [1] Adding 'All Roles Common Last' because it's marked AlwaysExecute. +[03/21/2024 16:27:41.0189] [1] The following roles are installed: AdminToolsRole +[03/21/2024 16:27:41.0189] [1] Loaded 7 parameters from the configuration file "C:\Program Files\Microsoft\Exchange Server\V15\bin\EnterpriseServiceEndpointsConfig.xml". +[03/21/2024 16:27:41.0189] [1] Writing informational script to 'C:\ExchangeSetupLogs\Install-BridgeheadRole-20240321-1227410189690167871.ps1' +[03/21/2024 16:27:41.0189] [1] Executing: $RoleAllRoles = 'BridgeheadRole,GatewayRole,ClientAccessRole,MailboxRole,UnifiedMessagingRole,FrontendTransportRole,AdminToolsRole,MonitoringRole,CentralAdminRole,CentralAdminDatabaseRole,CentralAdminFrontEndRole,LanguagePacksRole,CafeRole,FfoWebServiceRole,OSPRole' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleBinPath = 'C:\Program Files\Microsoft\Exchange Server\V15\Bin' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleCustomerFeedbackEnabled = $null +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDatacenterPath = 'C:\Program Files\Microsoft\Exchange Server\V15\Datacenter' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDatacenterServiceEndpointABCHContactService = 'http://pvt-contacts.msn.com/abservice/abservice.asmx' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDatacenterServiceEndpointDomainPartnerManageDelegation = 'https://domains.live.com/service/managedelegation.asmx' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDatacenterServiceEndpointDomainPartnerManageDelegation2 = 'https://domains.live.com/service/managedelegation2.asmx' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDatacenterServiceEndpointLiveFederationMetadata = 'https://nexus.passport.com/FederationMetadata/2006-12/FederationMetadata.xml' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDatacenterServiceEndpointLiveGetUserRealm = 'https://login.live.com/GetUserRealm.srf' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDatacenterServiceEndpointLiveServiceLogin2 = 'https://login.live.com/RST2.srf' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDatacenterServiceEndpointMsoFederationMetadata = 'https://nexus.microsoftonline-p.com/FederationMetadata/2006-12/FederationMetadata.xml' +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDisableAMFiltering = $False +[03/21/2024 16:27:41.0204] [1] Executing: $RoleDomainController = 'DC1.Solo.local' +[03/21/2024 16:27:41.0220] [1] Executing: $RoleFqdnOrName = 'ExSvr1.Solo.local' +[03/21/2024 16:27:41.0220] [1] Executing: $RoleInstallationMode = 'Install' +[03/21/2024 16:27:41.0220] [1] Executing: $RoleInstallPath = 'C:\Program Files\Microsoft\Exchange Server\V15\' +[03/21/2024 16:27:41.0220] [1] Executing: $RoleInvocationID = '20240321-1227410189690167871' +[03/21/2024 16:27:41.0220] [1] Executing: $RoleIsAdminToolsRoleInstalled = $True +[03/21/2024 16:27:41.0220] [1] Executing: $RoleIsDatacenter = $False +[03/21/2024 16:27:41.0220] [1] Executing: $RoleIsDatacenterDedicated = $False +[03/21/2024 16:27:41.0220] [1] Executing: $RoleIsFfo = $False +[03/21/2024 16:27:41.0220] [1] Executing: $RoleIsPartnerHosted = $False +[03/21/2024 16:27:41.0220] [1] Executing: $RoleLanguagePacksPath = 'D:\\' +[03/21/2024 16:27:41.0220] [1] Executing: $RoleLoggedOnUser = 'SOLO\Han' +[03/21/2024 16:27:41.0220] [1] Executing: $RoleLoggingPath = 'C:\Program Files\Microsoft\Exchange Server\V15\Logging' +[03/21/2024 16:27:41.0220] [1] Executing: $RoleNetBIOSName = 'ExSvr1' +[03/21/2024 16:27:41.0236] [1] Executing: $RolePreviousVersion = $null +[03/21/2024 16:27:41.0236] [1] Executing: $RoleProductPlatform = 'amd64' +[03/21/2024 16:27:41.0236] [1] Executing: $RoleRoleName = 'BridgeheadRole' +[03/21/2024 16:27:41.0236] [1] Executing: $RoleRoles = 'AdminToolsRole' +[03/21/2024 16:27:41.0236] [1] Executing: $RoleSetupLoggingPath = 'C:\ExchangeSetupLogs' +[03/21/2024 16:27:41.0236] [1] Executing: $RoleStartTransportService = $True +[03/21/2024 16:27:41.0236] [1] Executing: $RoleTargetVersion = '15.02.1544.004' +[03/21/2024 16:27:41.0236] [1] Executing: $RoleUpdatesDir = $null +[03/21/2024 16:27:41.0236] [1] Setup failed previously while performing the action Install. Looking for the failed task with ID AllADRolesCommonServiceControl___ee47ab1c06fb47919398e2e95ed99c6c. +[03/21/2024 16:27:41.0236] [1] 194 tasks were found to run. +[03/21/2024 16:27:41.0236] [1] Processing component 'Active Directory Topology Service Configuration' (Configuring Microsoft Exchange Active Directory Topology service). +[03/21/2024 16:27:41.0236] [1] Executing: + $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."; + } + +[03/21/2024 16:27:41.0267] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:27:41.0267] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:27:41.0267] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:27:47.0572] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:27:47.0572] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:27:47.0589] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:27:47.0589] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:27:47.0589] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:27:47.0589] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:27:47.0589] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:27:47.0589] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:27:47.0589] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:28:17.0611] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:28:17.0611] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:28:17.0611] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:28:23.0728] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:28:23.0728] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:28:23.0728] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:28:23.0728] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:28:23.0728] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:28:23.0728] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:28:23.0728] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:28:23.0728] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:28:23.0728] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:28:53.0737] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:28:53.0737] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:28:53.0737] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:28:59.0836] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:28:59.0836] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:28:59.0836] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:28:59.0836] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:28:59.0836] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:28:59.0836] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:28:59.0852] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:28:59.0852] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:28:59.0852] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:29:29.0862] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:29:29.0862] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:29:29.0862] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:29:36.0001] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:29:36.0001] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:29:36.0001] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:29:36.0001] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:29:36.0001] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:29:36.0001] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:29:36.0001] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:29:36.0001] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:29:36.0001] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:30:06.0009] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:30:06.0009] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:30:06.0009] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:30:12.0133] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:30:12.0133] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:30:12.0133] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:30:12.0133] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:30:12.0133] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:30:12.0133] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:30:12.0133] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:30:12.0133] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:30:12.0133] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:30:42.0138] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:30:42.0138] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:30:42.0138] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:30:48.0267] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:30:48.0267] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:30:48.0267] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:30:48.0267] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:30:48.0267] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:30:48.0267] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:30:48.0267] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:30:48.0267] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:30:48.0267] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:31:18.0275] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:31:18.0275] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:31:18.0275] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:31:24.0416] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:31:24.0416] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:31:24.0416] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:31:24.0416] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:31:24.0416] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:31:24.0416] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:31:24.0416] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:31:24.0416] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:31:24.0432] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:31:54.0440] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:31:54.0440] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:31:54.0440] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:32:00.0581] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:32:00.0581] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:32:00.0581] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:32:00.0581] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:32:00.0581] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:32:00.0581] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:32:00.0581] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:32:00.0581] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:32:00.0581] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:32:30.0591] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:32:30.0591] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:32:30.0591] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:32:36.0730] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:32:36.0730] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:32:36.0730] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:32:36.0730] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:32:36.0730] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:32:36.0730] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:32:36.0730] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:32:36.0730] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:32:36.0730] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:33:06.0739] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:33:06.0739] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:33:06.0739] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:33:12.0826] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:33:12.0826] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:33:12.0830] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:33:12.0830] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:33:12.0830] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:33:12.0830] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:33:12.0830] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:33:12.0830] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:33:12.0830] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:33:42.0833] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:33:42.0833] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:33:42.0833] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:33:48.0948] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:33:48.0948] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:33:48.0948] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:33:48.0948] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:33:48.0948] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:33:48.0948] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:33:48.0948] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:33:48.0948] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:33:48.0948] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:34:18.0954] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:34:18.0954] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:34:18.0954] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:34:25.0068] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:34:25.0068] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:34:25.0068] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:34:25.0068] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:34:25.0068] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:34:25.0068] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:34:25.0068] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:34:25.0068] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:34:25.0068] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:34:55.0070] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:34:55.0070] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:34:55.0070] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:35:01.0214] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:35:01.0214] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:35:01.0214] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:35:01.0214] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:35:01.0214] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:35:01.0214] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:35:01.0214] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:35:01.0214] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:35:01.0214] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:35:31.0227] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC1.Solo.local', Preferred Global Catalog: 'DC1.Solo.local', Preferred Domain Controllers: '{ DC1.Solo.local }' +[03/21/2024 16:35:31.0227] [2] User specified parameters: -DomainController:'DC1.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/21/2024 16:35:31.0227] [2] Beginning processing Set-SharedConfigDC +[03/21/2024 16:35:37.0355] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:35:37.0355] [2] Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:35:37.0355] [2] Ending processing Set-SharedConfigDC +[03/21/2024 16:35:37.0355] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:35:37.0355] [2] An error ocurred while setting shared config DC. Error: Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'. +[03/21/2024 16:35:37.0355] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:35:37.0355] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:35:37.0355] [2] Waiting 30 seconds before attempting again. +[03/21/2024 16:35:37.0355] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:36:07.0357] [2] Beginning processing Write-ExchangeSetupLog +[03/21/2024 16:36:07.0357] [2] [ERROR] Unable to set shared config DC. +[03/21/2024 16:36:07.0357] [2] [ERROR] Unable to set shared config DC. +[03/21/2024 16:36:07.0373] [2] Ending processing Write-ExchangeSetupLog +[03/21/2024 16:36:07.0373] [1] The following 1 error(s) occurred during task execution: +[03/21/2024 16:36:07.0373] [1] 0. ErrorRecord: Unable to set shared config DC. +[03/21/2024 16:36:07.0373] [1] 0. ErrorRecord: 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.b__91_1() + at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed) +[03/21/2024 16:36:07.0373] [1] [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.b__91_1() + at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)". +[03/21/2024 16:36:07.0373] [1] [ERROR] Unable to set shared config DC. +[03/21/2024 16:36:07.0373] [1] [ERROR-REFERENCE] Id=AllADRolesCommonServiceControl___ee47ab1c06fb47919398e2e95ed99c6c Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup +[03/21/2024 16:36:07.0373] [1] Setup is stopping now because of one or more critical errors. +[03/21/2024 16:36:07.0373] [1] Finished executing component tasks. +[03/21/2024 16:36:07.0436] [1] Ending processing Install-BridgeheadRole diff --git a/Setup/Tests/KnownIssues/ExchangeSetup_NoSuitableDC.log b/Setup/Tests/KnownIssues/ExchangeSetup_NoSuitableDC.log new file mode 100644 index 0000000000..96213dc6c2 --- /dev/null +++ b/Setup/Tests/KnownIssues/ExchangeSetup_NoSuitableDC.log @@ -0,0 +1,580 @@ +[03/20/2024 20:42:29.0184] [0] ********************************************** +[03/20/2024 20:42:29.0184] [0] Starting Microsoft Exchange Server 2019 Setup +[03/20/2024 20:42:29.0184] [0] ********************************************** +[03/20/2024 20:42:29.0184] [0] Local time zone: (UTC-05:00) Eastern Time (US & Canada). +[03/20/2024 20:42:29.0184] [0] Operating system version: Microsoft Windows NT 6.2.9200.0. +[03/20/2024 20:42:29.0184] [0] Setup version: 15.2.1544.4. +[03/20/2024 20:42:29.0184] [0] Logged on user: SOLO\Han. +[03/20/2024 20:42:29.0200] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found. +[03/20/2024 20:42:29.0215] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found. +[03/20/2024 20:42:29.0231] [0] Command Line Parameter Name='sourcedir', Value='D:\'. +[03/20/2024 20:42:29.0231] [0] Command Line Parameter Name='mode', Value='Install'. +[03/20/2024 20:42:29.0246] [0] RuntimeAssembly was started with the following command: '/sourcedir:D: /mode:Install'. +[03/20/2024 20:42:29.0246] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found. +[03/20/2024 20:42:29.0856] [0] Finished loading screen CheckForUpdatesPage. +[03/20/2024 20:42:32.0442] [0] Starting file's copying... +[03/20/2024 20:42:32.0442] [0] Setup copy files from 'D:\Setup\ServerRoles\Common' to 'C:\Windows\Temp\ExchangeSetup' +[03/20/2024 20:42:32.0539] [0] Disk space required: 2133919635 bytes. +[03/20/2024 20:42:32.0539] [0] Disk space available: 182941855744 bytes. +[03/20/2024 20:42:32.0648] [0] Finished loading screen CopyFilesPage. +[03/20/2024 20:42:52.0161] [0] File's copying finished. +[03/20/2024 20:42:52.0364] [0] Finished loading screen InitializingSetupPage. +[03/20/2024 20:42:57.0095] [0] Setup is choosing the domain controller to use +[03/20/2024 20:43:03.0769] [0] Setup is choosing a local domain controller... +[03/20/2024 20:43:07.0337] [0] Setup has chosen the local domain controller DC2.Solo.local for initial queries +[03/20/2024 20:43:07.0790] [0] PrepareAD has been run, and has replicated to this domain controller; so setup will use DC2.Solo.local +[03/20/2024 20:43:07.0790] [0] Setup is choosing a global catalog... +[03/20/2024 20:43:07.0821] [0] Setup has chosen the global catalog server DC2.Solo.local. +[03/20/2024 20:43:07.0837] [0] Setup will use the domain controller 'DC2.Solo.local'. +[03/20/2024 20:43:07.0837] [0] Setup will use the global catalog 'DC2.Solo.local'. +[03/20/2024 20:43:07.0853] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Solo,DC=local'. +[03/20/2024 20:43:07.0853] [0] Exchange organization container for the organization is 'CN=SoloORG,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Solo,DC=local'. +[03/20/2024 20:43:07.0900] [0] Setup will search for an Exchange Server object for the local machine with name 'ExSvr1'. +[03/20/2024 20:43:07.0931] [0] No Exchange Server with identity 'ExSvr1' was found. +[03/20/2024 20:43:08.0040] [0] The following roles have been unpacked: +[03/20/2024 20:43:08.0056] [0] The following datacenter roles are unpacked: +[03/20/2024 20:43:08.0056] [0] The following roles are installed: +[03/20/2024 20:43:08.0072] [0] The local server does not have any Exchange files installed. +[03/20/2024 20:43:08.0431] [0] Server Name=ExSvr1 +[03/20/2024 20:43:08.0446] [0] Setup will use the path 'D:\' for installing Exchange. +[03/20/2024 20:43:08.0446] [0] The installation mode is set to: 'Install'. +[03/20/2024 20:43:14.0506] [0] An Exchange organization with name 'SoloORG' was found in this forest. +[03/20/2024 20:43:14.0506] [0] Active Directory Initialization status : 'True'. +[03/20/2024 20:43:14.0506] [0] Schema Update Required Status : 'False'. +[03/20/2024 20:43:14.0506] [0] Organization Configuration Update Required Status : 'False'. +[03/20/2024 20:43:14.0506] [0] Domain Configuration Update Required Status : 'False'. +[03/20/2024 20:43:14.0913] [0] Applying default role selection state +[03/20/2024 20:43:14.0928] [0] Setup is determining what organization-level operations to perform. +[03/20/2024 20:43:14.0928] [0] Because the value was specified, setup is setting the argument OrganizationName to the value SoloORG. +[03/20/2024 20:43:14.0928] [0] Setup will run from path 'C:\Windows\Temp\ExchangeSetup'. +[03/20/2024 20:43:14.0944] [0] InstallModeDataHandler has 0 DataHandlers +[03/20/2024 20:43:14.0944] [0] RootDataHandler has 1 DataHandlers +[03/20/2024 20:43:15.0258] [0] CurrentResult launcherbase.maincore:90: 0 +[03/20/2024 20:43:15.0477] [0] Finished loading screen WelcomePage. +[03/20/2024 20:43:23.0968] [0] Finished loading screen EULAPage. +[03/20/2024 20:43:25.0357] [0] Finished loading screen RecommendedSettingsPage. +[03/20/2024 20:43:26.0796] [0] Finished loading screen RoleSelectionPage. +[03/20/2024 20:43:28.0517] [0] Setup is determining what organization-level operations to perform. +[03/20/2024 20:43:28.0517] [0] Because the value was specified, setup is setting the argument OrganizationName to the value SoloORG. +[03/20/2024 20:43:28.0517] [0] Setup will run from path 'C:\Windows\Temp\ExchangeSetup'. +[03/20/2024 20:43:28.0533] [0] InstallModeDataHandler has 9 DataHandlers +[03/20/2024 20:43:28.0533] [0] Setup is determining what organization-level operations to perform. +[03/20/2024 20:43:28.0533] [0] Because the value was specified, setup is setting the argument OrganizationName to the value SoloORG. +[03/20/2024 20:43:28.0533] [0] Setup will run from path 'C:\Windows\Temp\ExchangeSetup'. +[03/20/2024 20:43:28.0548] [0] InstallModeDataHandler has 10 DataHandlers +[03/20/2024 20:43:28.0548] [0] Setup is determining what organization-level operations to perform. +[03/20/2024 20:43:28.0548] [0] Because the value was specified, setup is setting the argument OrganizationName to the value SoloORG. +[03/20/2024 20:43:28.0548] [0] Setup will run from path 'C:\Windows\Temp\ExchangeSetup'. +[03/20/2024 20:43:28.0548] [0] InstallModeDataHandler has 11 DataHandlers +[03/20/2024 20:43:28.0548] [0] Setup is determining what organization-level operations to perform. +[03/20/2024 20:43:28.0548] [0] Because the value was specified, setup is setting the argument OrganizationName to the value SoloORG. +[03/20/2024 20:43:28.0548] [0] Setup will run from path 'C:\Windows\Temp\ExchangeSetup'. +[03/20/2024 20:43:28.0548] [0] InstallModeDataHandler has 12 DataHandlers +[03/20/2024 20:43:28.0548] [0] Setup is determining what organization-level operations to perform. +[03/20/2024 20:43:28.0548] [0] Because the value was specified, setup is setting the argument OrganizationName to the value SoloORG. +[03/20/2024 20:43:28.0548] [0] Setup will run from path 'C:\Windows\Temp\ExchangeSetup'. +[03/20/2024 20:43:28.0548] [0] InstallModeDataHandler has 13 DataHandlers +[03/20/2024 20:43:30.0231] [0] Finished loading screen InstallationSpaceAndLocationPage. +[03/20/2024 20:43:31.0609] [0] Finished loading screen ProtectionSettingsPage. +[03/20/2024 20:43:32.0704] [0] ************** +[03/20/2024 20:44:39.0120] [1] Evaluated [Setting:ComputerNameDnsFullyQualified] [HasException:False] [Value:"ExSvr1.Solo.local"] [ParentValue:""] [Thread:109] [Duration:00:00:00] + update-PowerShellVirtualDirectoryVersion -DomainController $RoleDomainController; + } + +[03/20/2024 20:56:44.0445] [2] Active Directory session settings for 'Get-PowerShellVirtualDirectory' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:56:44.0445] [2] User specified parameters: -ShowMailboxVirtualDirectories:'True' -Server:'ExSvr1.Solo.local' -DomainController:'DC2.Solo.local' +[03/20/2024 20:56:44.0445] [2] Beginning processing get-PowerShellVirtualDirectory +[03/20/2024 20:56:44.0445] [2] Searching objects "ExSvr1.Solo.local" of type "Server" under the root "$null". +[03/20/2024 20:56:44.0523] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:56:44.0539] [2] Searching objects of type "ADPowerShellVirtualDirectory" with filter "$null", scope "SubTree" under the root "ExSvr1". +[03/20/2024 20:56:44.0539] [2] Request filter in Get Task: (&(objectCategory=msExchPowerShellVirtualDirectory)(|(&(msExchVersion<=1125899906842624)(!(msExchVersion=1125899906842624)))(!(msExchVersion=*)))). +[03/20/2024 20:56:44.0539] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:56:44.0539] [2] Preparing to output objects. The maximum size of the result set is "Unlimited". +[03/20/2024 20:56:44.0539] [2] Ending processing get-PowerShellVirtualDirectory +[03/20/2024 20:56:44.0570] [2] Active Directory session settings for 'New-PowerShellVirtualDirectory' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:56:44.0570] [2] User specified parameters: -Role:'Mailbox' -DomainController:'DC2.Solo.local' -BasicAuthentication:'False' -WindowsAuthentication:'True' -RequireSSL:'True' -WebSiteName:'Exchange Back End' -Path:'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\PowerShell-Proxy' -Name:'PowerShell' +[03/20/2024 20:56:44.0570] [2] Beginning processing new-PowerShellVirtualDirectory +[03/20/2024 20:56:44.0601] [2] Searching objects "ExSvr1.Solo.local" of type "Server" under the root "$null". +[03/20/2024 20:56:44.0711] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:56:44.0757] [2] Processing object "ExSvr1\PowerShell". +[03/20/2024 20:56:59.0632] [2] The properties changed on the object '' (CN=PowerShell (Exchange Back End),CN=HTTP,CN=Protocols,CN=ExSvr1,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=SoloORG,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Solo,DC=local) are: "{ MetabasePath[msExchMetabasePath]='IIS://ExSvr1.Solo.local/W3SVC/2/ROOT/PowerShell', AuthenticationMethodFlags[msExchInternalAuthenticationMethods]='Ntlm, WindowsIntegrated', AuthenticationMethodFlags[msExchExternalAuthenticationMethods]='Ntlm, WindowsIntegrated', Id[distinguishedName]='ExSvr1\PowerShell (Exchange Back End)', InternalAuthenticationMethods[msExchInternalAuthenticationMethods]={ 'Ntlm', 'WindowsIntegrated' }, ExternalAuthenticationMethods[msExchExternalAuthenticationMethods]={ 'Ntlm', 'WindowsIntegrated' }, OrganizationId[msExchOURoot, msExchCU]='' }". +[03/20/2024 20:56:59.0632] [2] Saving object "ExSvr1\PowerShell (Exchange Back End)" of type "ADPowerShellVirtualDirectory" and state "New". +[03/20/2024 20:56:59.0648] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:57:01.0023] [2] Searching objects "ExSvr1\PowerShell (Exchange Back End)" of type "ADPowerShellVirtualDirectory" under the root "$null". +[03/20/2024 20:57:01.0054] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:57:01.0054] [2] Ending processing new-PowerShellVirtualDirectory +[03/20/2024 20:57:01.0070] [2] Active Directory session settings for 'Get-PowerShellVirtualDirectory' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:01.0070] [2] User specified parameters: -ShowMailboxVirtualDirectories:'True' -Server:'ExSvr1.Solo.local' -DomainController:'DC2.Solo.local' +[03/20/2024 20:57:01.0070] [2] Beginning processing get-PowerShellVirtualDirectory +[03/20/2024 20:57:01.0070] [2] Searching objects "ExSvr1.Solo.local" of type "Server" under the root "$null". +[03/20/2024 20:57:01.0117] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:57:01.0117] [2] Searching objects of type "ADPowerShellVirtualDirectory" with filter "$null", scope "SubTree" under the root "ExSvr1". +[03/20/2024 20:57:01.0117] [2] Request filter in Get Task: (&(objectCategory=msExchPowerShellVirtualDirectory)(|(&(msExchVersion<=1125899906842624)(!(msExchVersion=1125899906842624)))(!(msExchVersion=*)))). +[03/20/2024 20:57:01.0117] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:57:01.0117] [2] Preparing to output objects. The maximum size of the result set is "Unlimited". +[03/20/2024 20:57:02.0773] [2] Ending processing get-PowerShellVirtualDirectory +[03/20/2024 20:57:02.0773] [2] Active Directory session settings for 'New-PowerShellVirtualDirectory' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:02.0773] [2] User specified parameters: -Name:'PowerShell' -DomainController:'DC2.Solo.local' -Role:'Mailbox' -InternalUrl:'http://ExSvr1.Solo.local/powershell' -WebSiteName:'Default Web Site' -WindowsAuthentication:'False' -AppPoolId:'MSExchangePowerShellFrontEndAppPool' -BasicAuthentication:'False' -RequireSSL:'False' +[03/20/2024 20:57:02.0773] [2] Beginning processing new-PowerShellVirtualDirectory +[03/20/2024 20:57:02.0773] [2] Searching objects "ExSvr1.Solo.local" of type "Server" under the root "$null". +[03/20/2024 20:57:02.0820] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:57:02.0820] [2] Processing object "ExSvr1\PowerShell". +[03/20/2024 20:57:08.0773] [2] The properties changed on the object '' (CN=PowerShell (Default Web Site),CN=HTTP,CN=Protocols,CN=ExSvr1,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=SoloORG,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Solo,DC=local) are: "{ MetabasePath[msExchMetabasePath]='IIS://ExSvr1.Solo.local/W3SVC/1/ROOT/PowerShell', InternalUrl[msExchInternalHostName]='http://ExSvr1.Solo.local/powershell', Id[distinguishedName]='ExSvr1\PowerShell (Default Web Site)', InternalAuthenticationMethods[msExchInternalAuthenticationMethods]={ }, ExternalAuthenticationMethods[msExchExternalAuthenticationMethods]={ }, OrganizationId[msExchOURoot, msExchCU]='' }". +[03/20/2024 20:57:08.0773] [2] Saving object "ExSvr1\PowerShell (Default Web Site)" of type "ADPowerShellVirtualDirectory" and state "New". +[03/20/2024 20:57:08.0773] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:57:10.0335] [2] Searching objects "ExSvr1\PowerShell (Default Web Site)" of type "ADPowerShellVirtualDirectory" under the root "$null". +[03/20/2024 20:57:10.0335] [2] Previous operation run on domain controller 'DC2.Solo.local'. +[03/20/2024 20:57:10.0351] [2] Ending processing new-PowerShellVirtualDirectory +[03/20/2024 20:57:10.0351] [1] Executing: + $file = 'web.config'; + $relPath = "ClientAccess\PowerShell"; + $dirPath = [System.IO.Path]::Combine($RoleInstallPath, $relPath); + + Set-InstallPathInAppConfig -ConfigFileRelativePath $relPath -ConfigFileName $file; + Preserve-AppSettings -RoleInstallPath $dirPath -ConfigFileName $file; + +[03/20/2024 20:57:10.0351] [2] Active Directory session settings for 'Set-InstallPathInAppConfig' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:10.0351] [2] User specified parameters: -ConfigFileRelativePath:'ClientAccess\PowerShell' -ConfigFileName:'web.config' +[03/20/2024 20:57:10.0351] [2] Beginning processing Set-InstallPathInAppConfig +[03/20/2024 20:57:10.0367] [2] Ending processing Set-InstallPathInAppConfig +[03/20/2024 20:57:10.0367] [2] Active Directory session settings for 'Preserve-AppSettings' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:10.0367] [2] User specified parameters: -RoleInstallPath:'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\PowerShell' -ConfigFileName:'web.config' +[03/20/2024 20:57:10.0367] [2] Beginning processing Preserve-AppSettings +[03/20/2024 20:57:10.0367] [2] Backup config file does not exist at: C:\Program Files\Microsoft\Exchange Server\V15\ConfigBackup\ClientAccess\PowerShell\web.config. Skipping preservation. +[03/20/2024 20:57:10.0367] [2] Ending processing Preserve-AppSettings +[03/20/2024 20:57:10.0367] [1] Executing: + $file = 'web.config'; + $relPath = "ClientAccess\PowerShell-Proxy"; + $dirPath = [System.IO.Path]::Combine($RoleInstallPath, $relPath); + + Set-InstallPathInAppConfig -ConfigFileRelativePath $relPath -ConfigFileName $file; + Preserve-AppSettings -RoleInstallPath $dirPath -ConfigFileName $file; + +[03/20/2024 20:57:10.0367] [2] Active Directory session settings for 'Set-InstallPathInAppConfig' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:10.0367] [2] User specified parameters: -ConfigFileRelativePath:'ClientAccess\PowerShell-Proxy' -ConfigFileName:'web.config' +[03/20/2024 20:57:10.0367] [2] Beginning processing Set-InstallPathInAppConfig +[03/20/2024 20:57:10.0382] [2] Ending processing Set-InstallPathInAppConfig +[03/20/2024 20:57:10.0398] [2] Active Directory session settings for 'Preserve-AppSettings' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:10.0398] [2] User specified parameters: -RoleInstallPath:'C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\PowerShell-Proxy' -ConfigFileName:'web.config' +[03/20/2024 20:57:10.0398] [2] Beginning processing Preserve-AppSettings +[03/20/2024 20:57:10.0398] [2] Backup config file does not exist at: C:\Program Files\Microsoft\Exchange Server\V15\ConfigBackup\ClientAccess\PowerShell-Proxy\web.config. Skipping preservation. +[03/20/2024 20:57:10.0398] [2] Ending processing Preserve-AppSettings +[03/20/2024 20:57:10.0398] [1] Processing component 'WSMan IIS Hosting Configuration' (WSMan IIS Hosting Configuration Component). +[03/20/2024 20:57:10.0398] [1] Executing: + configure-WSManIISHosting -EnableKerberosModule; + +[03/20/2024 20:57:10.0413] [2] Active Directory session settings for 'Configure-WSManIISHosting' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:10.0413] [2] User specified parameters: -EnableKerberosModule:'True' +[03/20/2024 20:57:10.0413] [2] Beginning processing configure-WSManIISHosting +[03/20/2024 20:57:10.0413] [2] Changing the start type of WINRM service to Automatic Delayed... +[03/20/2024 20:57:10.0413] [2] Starting WINRM service... +[03/20/2024 20:57:10.0413] [2] Checking required files... +[03/20/2024 20:57:10.0538] [2] Installing Kerberos authentication global module 'C:\Program Files\Microsoft\Exchange Server\V15\Bin\kerbauth.dll'... +[03/20/2024 20:57:10.0726] [2] Successfully ran the command: +C:\Windows\system32\inetsrv\appcmd.exe install module /name:kerbauth /image:"C:\Program Files\Microsoft\Exchange Server\V15\Bin\kerbauth.dll" /add:false +Output: GLOBAL MODULE object "kerbauth" added + +[03/20/2024 20:57:10.0742] [2] Checking required registry keys... +[03/20/2024 20:57:10.0742] [2] Restarting WSMan service... +[03/20/2024 20:57:13.0351] [2] Successfully ran the command: +C:\Windows\system32\net.exe stop winrm +Output: The Windows Remote Management (WS-Management) service is stopping. +The Windows Remote Management (WS-Management) service was stopped successfully. + +[03/20/2024 20:57:15.0445] [2] Successfully ran the command: +C:\Windows\system32\net.exe start winrm +Output: The Windows Remote Management (WS-Management) service is starting. +The Windows Remote Management (WS-Management) service was started successfully. + +[03/20/2024 20:57:15.0445] [2] Rebuilding WSMan registry... +[03/20/2024 20:57:16.0007] [2] Successfully ran the command: +C:\Windows\system32\winrm.cmd i restore winrm/config +Output: Restore_OUTPUT + +[03/20/2024 20:57:16.0023] [2] Checking current IIS configuration... +[03/20/2024 20:57:16.0070] [2] Backing up current IIS configuration to 'IISBackup133554418360700417'. +[03/20/2024 20:57:16.0273] [2] Successfully ran the command: +C:\Windows\system32\inetsrv\appcmd.exe add backup IISBackup133554418360700417 +Output: BACKUP object "IISBackup133554418360700417" added + +[03/20/2024 20:57:16.0273] [2] Adding WSMan configuration section in 'C:\Windows\system32\inetsrv\config\ApplicationHost.Config'... +[03/20/2024 20:57:16.0288] [2] Unlocking the 'system.webServer/modules' section... +[03/20/2024 20:57:16.0554] [2] Successfully ran the command: +C:\Windows\system32\inetsrv\appcmd.exe unlock config -section:system.webServer/modules +Output: Unlocked section "system.webServer/modules" at configuration path "MACHINE/WEBROOT/APPHOST". + +[03/20/2024 20:57:16.0570] [2] Installing WSMan global module 'WSMan'... +[03/20/2024 20:57:16.0788] [2] Successfully ran the command: +C:\Windows\system32\inetsrv\appcmd.exe install module /name:WSMan /image:C:\Windows\system32\wsmsvc.dll /add:false +Output: GLOBAL MODULE object "WSMan" added + +[03/20/2024 20:57:16.0788] [2] Restarting WSMan service... +[03/20/2024 20:57:19.0382] [2] Successfully ran the command: +C:\Windows\system32\net.exe stop winrm +Output: The Windows Remote Management (WS-Management) service is stopping. +The Windows Remote Management (WS-Management) service was stopped successfully. + +[03/20/2024 20:57:21.0476] [2] Successfully ran the command: +C:\Windows\system32\net.exe start winrm +Output: The Windows Remote Management (WS-Management) service is starting. +The Windows Remote Management (WS-Management) service was started successfully. + +[03/20/2024 20:57:21.0491] [2] Opening port 80 for HTTP in firewall... +[03/20/2024 20:57:22.0569] [2] Successfully ran the command: +C:\Windows\system32\netsh.exe firewall set portopening TCP 80 HTTP +Output: IMPORTANT: Command executed successfully. +However, "netsh firewall" is deprecated; +use "netsh advfirewall firewall" instead. +For more information on using "netsh advfirewall firewall" commands +instead of "netsh firewall", see KB article 947709 +at https://go.microsoft.com/fwlink/?linkid=121488 . +Ok. + +[03/20/2024 20:57:22.0569] [2] Opening port 443 for HTTPS in firewall... +[03/20/2024 20:57:23.0366] [2] Successfully ran the command: +C:\Windows\system32\netsh.exe firewall set portopening TCP 443 HTTPS +Output: IMPORTANT: Command executed successfully. +However, "netsh firewall" is deprecated; +use "netsh advfirewall firewall" instead. +For more information on using "netsh advfirewall firewall" commands +instead of "netsh firewall", see KB article 947709 +at https://go.microsoft.com/fwlink/?linkid=121488 . +Ok. + +[03/20/2024 20:57:23.0366] [2] Ending processing configure-WSManIISHosting +[03/20/2024 20:57:23.0382] [1] Processing component 'Active Directory Topology Service Configuration' (Configuring Microsoft Exchange Active Directory Topology service). +[03/20/2024 20:57:23.0382] [1] Executing: + if ($exsSid -eq $null -or $exsSid -eq "") + { + $exsSid = get-ExchangeServerGroupSID -DomainController $RoleDomainController + } + start-setupservice -ServiceName MSExchangeADTopology -ServiceParameters $exsSid,$RoleDomainController + +[03/20/2024 20:57:23.0382] [2] Active Directory session settings for 'start-SetupService' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:23.0382] [2] User specified parameters: -ServiceName:'MSExchangeADTopology' -ServiceParameters:'S-1-5-21-1281225956-1072373970-2205875210-1119','DC2.Solo.local' +[03/20/2024 20:57:23.0382] [2] Beginning processing start-setupservice +[03/20/2024 20:57:25.0460] [2] [WARNING] Service checkpoint has not progressed. Previous checkpoint='0'- Current checkpoint='0'. +[03/20/2024 20:57:25.0460] [2] Previous service status query time is '3/20/2024 4:57:25 PM'. +[03/20/2024 20:57:25.0460] [2] Current service status query time is '3/20/2024 4:57:25 PM'. +[03/20/2024 20:57:25.0460] [2] Will wait '25000' milliseconds for the service 'MSExchangeADTopology' to reach status 'Running'. +[03/20/2024 20:57:30.0241] [2] Service 'MSExchangeADTopology' successfully reached status 'Running on this server while waiting for status change. +[03/20/2024 20:57:30.0241] [2] Ending processing start-setupservice +[03/20/2024 20:57:30.0241] [1] Executing: + $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."; + } + +[03/20/2024 20:57:30.0272] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:57:30.0272] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 20:57:30.0272] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 20:57:30.0554] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:57:30.0554] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:57:30.0554] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:57:30.0554] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:57:30.0554] [2] Ending processing Set-SharedConfigDC +[03/20/2024 20:57:30.0569] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:57:30.0569] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:57:30.0569] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:57:30.0569] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:57:30.0569] [2] Waiting 30 seconds before attempting again. +[03/20/2024 20:57:30.0569] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:58:00.0571] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:58:00.0571] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 20:58:00.0571] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 20:58:00.0696] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:58:00.0696] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:58:00.0696] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:58:00.0696] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:58:00.0696] [2] Ending processing Set-SharedConfigDC +[03/20/2024 20:58:00.0696] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:58:00.0711] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:58:00.0711] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:58:00.0711] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:58:00.0711] [2] Waiting 30 seconds before attempting again. +[03/20/2024 20:58:00.0711] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:58:30.0711] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:58:30.0711] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 20:58:30.0711] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 20:58:30.0852] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:58:30.0852] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:58:30.0852] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:58:30.0852] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:58:30.0852] [2] Ending processing Set-SharedConfigDC +[03/20/2024 20:58:30.0852] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:58:30.0852] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:58:30.0852] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:58:30.0852] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:58:30.0868] [2] Waiting 30 seconds before attempting again. +[03/20/2024 20:58:30.0868] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:59:00.0868] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:59:00.0868] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 20:59:00.0868] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 20:59:00.0977] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:59:00.0977] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:59:00.0977] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:59:00.0977] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:59:00.0977] [2] Ending processing Set-SharedConfigDC +[03/20/2024 20:59:00.0977] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:59:00.0977] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:59:00.0977] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:59:00.0977] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:59:00.0993] [2] Waiting 30 seconds before attempting again. +[03/20/2024 20:59:00.0993] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:59:31.0008] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 20:59:31.0008] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 20:59:31.0008] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 20:59:31.0134] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:59:31.0134] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:59:31.0134] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:59:31.0134] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 20:59:31.0134] [2] Ending processing Set-SharedConfigDC +[03/20/2024 20:59:31.0134] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:59:31.0149] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 20:59:31.0149] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 20:59:31.0149] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 20:59:31.0149] [2] Waiting 30 seconds before attempting again. +[03/20/2024 20:59:31.0149] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:00:01.0154] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:00:01.0154] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:00:01.0154] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:00:01.0248] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:00:01.0248] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:00:01.0248] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:00:01.0248] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:00:01.0248] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:00:01.0263] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:00:01.0263] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:00:01.0263] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:00:01.0263] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:00:01.0280] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:00:01.0280] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:00:31.0294] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:00:31.0294] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:00:31.0294] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:00:31.0388] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:00:31.0388] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:00:31.0403] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:00:31.0403] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:00:31.0403] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:00:31.0403] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:00:31.0403] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:00:31.0403] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:00:31.0403] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:00:31.0403] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:00:31.0403] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:01:01.0418] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:01:01.0418] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:01:01.0418] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:01:01.0554] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:01:01.0554] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:01:01.0554] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:01:01.0554] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:01:01.0554] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:01:01.0554] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:01:01.0570] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:01:01.0570] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:01:01.0570] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:01:01.0570] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:01:01.0570] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:01:31.0570] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:01:31.0570] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:01:31.0570] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:01:31.0663] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:01:31.0663] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:01:31.0663] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:01:31.0663] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:01:31.0663] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:01:31.0663] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:01:31.0679] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:01:31.0679] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:01:31.0679] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:01:31.0679] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:01:31.0679] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:02:01.0679] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:02:01.0679] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:02:01.0679] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:02:01.0773] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:02:01.0773] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:02:01.0773] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:02:01.0773] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:02:01.0773] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:02:01.0773] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:02:01.0789] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:02:01.0789] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:02:01.0789] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:02:01.0789] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:02:01.0789] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:02:31.0794] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:02:31.0794] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:02:31.0794] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:02:32.0013] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:02:32.0013] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:02:32.0013] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:02:32.0013] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:02:32.0013] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:02:32.0013] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:02:32.0013] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:02:32.0013] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:02:32.0013] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:02:32.0013] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:02:32.0013] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:03:02.0013] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:03:02.0013] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:03:02.0013] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:03:02.0107] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:03:02.0107] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:03:02.0107] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:03:02.0107] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:03:02.0107] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:03:02.0107] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:03:02.0107] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:03:02.0107] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:03:02.0123] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:03:02.0123] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:03:02.0123] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:03:32.0123] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:03:32.0123] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:03:32.0123] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:03:32.0264] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:03:32.0264] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:03:32.0264] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:03:32.0264] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:03:32.0264] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:03:32.0264] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:03:32.0264] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:03:32.0264] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:03:32.0264] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:03:32.0264] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:03:32.0279] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:04:02.0286] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:04:02.0286] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:04:02.0286] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:04:02.0379] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:04:02.0379] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:04:02.0379] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:04:02.0379] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:04:02.0395] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:04:02.0395] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:04:02.0395] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:04:02.0395] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:04:02.0395] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:04:02.0395] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:04:02.0395] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:04:32.0397] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:04:32.0397] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:04:32.0397] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:04:32.0491] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:04:32.0491] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:04:32.0491] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:04:32.0491] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:04:32.0491] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:04:32.0491] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:04:32.0507] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:04:32.0507] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:04:32.0507] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:04:32.0507] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:04:32.0507] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:05:02.0511] [2] Active Directory session settings for 'Set-SharedConfigDC' are: View Entire Forest: 'True', Configuration Domain Controller: 'DC2.Solo.local', Preferred Global Catalog: 'DC2.Solo.local', Preferred Domain Controllers: '{ DC2.Solo.local }' +[03/20/2024 21:05:02.0511] [2] User specified parameters: -DomainController:'DC2.Solo.local' -ErrorVariable:'setSharedCDCErrors' -ErrorAction:'SilentlyContinue' +[03/20/2024 21:05:02.0511] [2] Beginning processing Set-SharedConfigDC +[03/20/2024 21:05:02.0605] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:05:02.0605] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:05:02.0605] [2] The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:05:02.0605] [2] No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites. +[03/20/2024 21:05:02.0605] [2] Ending processing Set-SharedConfigDC +[03/20/2024 21:05:02.0605] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:05:02.0605] [2] An error ocurred while setting shared config DC. Error: The call to Microsoft Exchange Active Directory Topology service on server 'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found in Forest Solo.com Site Default-First-Site-Name and connected Sites.. +[03/20/2024 21:05:02.0605] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:05:02.0605] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:05:02.0621] [2] Waiting 30 seconds before attempting again. +[03/20/2024 21:05:02.0621] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:05:32.0636] [2] Beginning processing Write-ExchangeSetupLog +[03/20/2024 21:05:32.0636] [2] [ERROR] Unable to set shared config DC. +[03/20/2024 21:05:32.0636] [2] [ERROR] Unable to set shared config DC. +[03/20/2024 21:05:32.0636] [2] Ending processing Write-ExchangeSetupLog +[03/20/2024 21:05:32.0652] [1] The following 1 error(s) occurred during task execution: +[03/20/2024 21:05:32.0652] [1] 0. ErrorRecord: Unable to set shared config DC. +[03/20/2024 21:05:32.0652] [1] 0. ErrorRecord: 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.b__91_1() + at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed) +[03/20/2024 21:05:32.0652] [1] [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.b__91_1() + at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)". +[03/20/2024 21:05:32.0652] [1] [ERROR] Unable to set shared config DC. +[03/20/2024 21:05:32.0652] [1] [ERROR-REFERENCE] Id=AllADRolesCommonServiceControl___ee47ab1c06fb47919398e2e95ed99c6c Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup +[03/20/2024 21:05:32.0652] [1] Setup is stopping now because of one or more critical errors. +[03/20/2024 21:05:32.0652] [1] Finished executing component tasks. +[03/20/2024 21:05:32.0667] [1] Ending processing Install-BridgeheadRole +[03/20/2024 21:08:47.0464] [0] CurrentResult setupbase.maincore:396: 0 +[03/20/2024 21:08:47.0464] [0] End of Setup +[03/20/2024 21:08:47.0464] [0] ********************************************** diff --git a/Setup/Tests/SetupLogReviewer.Tests.ps1 b/Setup/Tests/SetupLogReviewer.Tests.ps1 index 4a76ffbe6f..f344351bbd 100644 --- a/Setup/Tests/SetupLogReviewer.Tests.ps1 +++ b/Setup/Tests/SetupLogReviewer.Tests.ps1 @@ -522,4 +522,36 @@ Describe "Testing SetupLogReviewer" { -ParameterFilter { $Object -like "*Run Setup again, but when using powershell.exe you MUST USE '.\' prior to setup.exe." } } } + + Context "Unable to set Shared Config DC" { + BeforeEach { + Mock Write-Host {} + Mock Write-Warning {} + } + + It "No Suitable Directory Services Found" { + & $sr -SetupLog "$PSScriptRoot\KnownIssues\ExchangeSetup_NoSuitableDC.log" + + # splat doesn't work for pester for some reason. + Assert-MockCalled -Exactly 1 -CommandName Write-Host ` + -ParameterFilter { $Object -like "*Unable to set shared config DC*'TopologyClientTcpEndpoint (localhost)' returned an error. Error details No Suitable Directory Servers Found*" } + Assert-MockCalled -Exactly 1 -CommandName Write-Host ` + -ParameterFilter { $Object -like "*It appears that the Microsoft Exchange Active Directory Topology service was started on the server and we ran into a different inner exception." } + Assert-MockCalled -Exactly 1 -CommandName Write-Host ` + -ParameterFilter { $Object -like "*NOTE: It is common that the service will not stay started after the initial failure, make sure you keep the Microsoft Exchange Active Directory Topology service running during the entire setup process" } + } + + It "AD Topology Service Not Started" { + & $sr -SetupLog "$PSScriptRoot\KnownIssues\ExchangeSetup_ADServiceNotStarted.log" + + # cspell:disable + $serviceStopLine = "Unable to set shared config DC.*Topology Provider coundn't find the Microsoft Exchange Active Directory Topology service on end point 'TopologyClientTcpEndpoint (localhost)'." + # cspell:enable + + Assert-MockCalled -Exactly 1 -CommandName Write-Host ` + -ParameterFilter { $Object -like "*$serviceStopLine" } + Assert-MockCalled -Exactly 1 -CommandName Write-Host ` + -ParameterFilter { $Object -like "*MAKE SURE IT IS RUNNING DURING THE WHOLE SETUP AFTER COPYING FILES" } + } + } }