We are having the PrepareAD issues as well when trying to go from CU9 to 10 on Exchange 2019 in a hybrid environment and English language.
[07/16/2021 15:12:57.0046] [2] Used domain controller DC.domain.local to read object CN=AdminSDHolder,CN=System,DC=domain,DC=local.
[07/16/2021 15:12:57.0056] [2] [ERROR] Object reference not set to an instance of an object.
[07/16/2021 15:12:57.0056] [2] [WARNING] An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.
[07/16/2021 15:12:57.0273] [1] The following 1 error(s) occurred during task execution:
[07/16/2021 15:12:57.0274] [1] 0. ErrorRecord: Object reference not set to an instance of an object.
[07/16/2021 15:12:57.0274] [1] 0. ErrorRecord: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Exchange.Management.Tasks.SetupTaskBase.LogReadObject(ADRawEntry obj)
at Microsoft.Exchange.Management.Tasks.InitializeDomainPermissions.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessTaskStage(TaskStage taskStage, Action initFunc, Action mainFunc, Action completeFunc)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
[07/16/2021 15:12:57.0275] [1] [ERROR] The following error was generated when "$error.Clear();
$createTenantRoot = ($RoleIsDatacenter -or $RoleIsPartnerHosted);
$createMsoSyncRoot = $RoleIsDatacenter;
#$RoleDatacenterIsManagementForest is set only in Datacenter deployment; interpret its absense as $false
[bool]$isManagementForest = ($RoleDatacenterIsManagementForest -eq $true);
if ($RolePrepareAllDomains)
{
initialize-DomainPermissions -AllDomains:$true -CreateTenantRoot:$createTenantRoot -CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$isManagementForest;
}
elseif ($RoleDomain -ne $null)
{
initialize-DomainPermissions -Domain $RoleDomain -CreateTenantRoot:$createTenantRoot -CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$isManagementForest;
}
else
{
initialize-DomainPermissions -CreateTenantRoot:$createTenantRoot -CreateMsoSyncRoot:$createMsoSyncRoot -IsManagementForest:$isManagementForest;
}
" was run: "System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Exchange.Management.Tasks.SetupTaskBase.LogReadObject(ADRawEntry obj)
at Microsoft.Exchange.Management.Tasks.InitializeDomainPermissions.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__91_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessTaskStage(TaskStage taskStage, Action initFunc, Action mainFunc, Action completeFunc)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()".
[07/16/2021 15:12:57.0275] [1] [ERROR] Object reference not set to an instance of an object.
[07/16/2021 15:12:57.0278] [1] [ERROR-REFERENCE] Id=DomainGlobalConfig___27a706ffe123425f9ee60cb02b930e81 Component=EXCHANGE14:\Current\Release\Shared\Datacenter\Setup
[07/16/2021 15:12:57.0278] [1] Setup is stopping now because of one or more critical errors.
[07/16/2021 15:12:57.0278] [1] Finished executing component tasks.
[07/16/2021 15:12:57.0288] [1] Ending processing Install-ExchangeOrganization
[07/16/2021 15:12:57.0290] [0] CurrentResult console.ProcessRunInternal:198: 1
[07/16/2021 15:12:57.0291] [0] CurrentResult launcherbase.maincore:90: 1
[07/16/2021 15:12:57.0291] [0] CurrentResult console.startmain:52: 1
[07/16/2021 15:12:57.0292] [0] CurrentResult SetupLauncherHelper.loadassembly:452: 1
[07/16/2021 15:12:57.0292] [0] The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.
[07/16/2021 15:12:57.0292] [0] CurrentResult main.run:235: 1
[07/16/2021 15:12:57.0292] [0] CurrentResult setupbase.maincore:396: 1
[07/16/2021 15:12:57.0293] [0] End of Setup
[07/16/2021 15:12:57.0293] [0] **********************************************