Share via

Exchange 16 installing CU23 error "Object reference not set to an instance of an object"

MLovell 20 Reputation points
2024-12-03T15:57:19.8766667+00:00

trying to install CU23 (currently on CU20, I believe) on an on-prem exchange server in hybrid online configuration

getting the error message on Step 1: Organization Preparation

Error:

The following error was generated when "$error.Clear();  initialize-ExchangeUniversalGroups -DomainController $RoleDomainController -ActiveDirectorySplitPermissions $RoleActiveDirectorySplitPermissions " was run: "System.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.Exchange.Management.Tasks.InitializeExchangeUniversalGroups.CreateOrMoveEWPGroup(ADGroup ewp, ADOrganizationalUnit usgContainer)    at Microsoft.Exchange.Management.Tasks.InitializeExchangeUniversalGroups.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()".

last part of exchangesetuplog:

[12/02/2024 23:54:28.0268] [2] Used domain controller DC.XXX.XXX to read object CN=Managed Availability Servers,OU=Microsoft Exchange Security Groups,OU=Mystery People,DC=Apache,DC=County. [12/02/2024 23:54:28.0268] [2] Used domain controller DC.XXX.XXX to read object CN=Managed Availability Servers,OU=Microsoft Exchange Security Groups,OU=Mystery People,DC=Apache,DC=County. [12/02/2024 23:54:28.0268] [2] Used domain controller DC.XXX.XXX to read object CN=Managed Availability Servers,OU=Microsoft Exchange Security Groups,OU=Mystery People,DC=Apache,DC=County. [12/02/2024 23:54:28.0268] [2] Group CN=Managed Availability Servers,OU=Microsoft Exchange Security Groups,OU=Mystery People,DC=Apache,DC=County already exists. [12/02/2024 23:54:28.0273] [2] [ERROR] Object reference not set to an instance of an object. [12/02/2024 23:54:28.0283] [2] [WARNING] An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object. [12/02/2024 23:54:29.0777] [1] The following 1 error(s) occurred during task execution: [12/02/2024 23:54:29.0778] [1] 0. ErrorRecord: Object reference not set to an instance of an object. [12/02/2024 23:54:29.0778] [1] 0. ErrorRecord: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Exchange.Management.Tasks.InitializeExchangeUniversalGroups.CreateOrMoveEWPGroup(ADGroup ewp, ADOrganizationalUnit usgContainer) at Microsoft.Exchange.Management.Tasks.InitializeExchangeUniversalGroups.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.Task.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() [12/02/2024 23:54:29.0779] [1] [ERROR] The following error was generated when "$error.Clear(); initialize-ExchangeUniversalGroups -DomainController $RoleDomainController -ActiveDirectorySplitPermissions $RoleActiveDirectorySplitPermissions " was run: "System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Exchange.Management.Tasks.InitializeExchangeUniversalGroups.CreateOrMoveEWPGroup(ADGroup ewp, ADOrganizationalUnit usgContainer) at Microsoft.Exchange.Management.Tasks.InitializeExchangeUniversalGroups.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.Task.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()". [12/02/2024 23:54:29.0779] [1] [ERROR] Object reference not set to an instance of an object. [12/02/2024 23:54:29.0780] [1] [ERROR-REFERENCE] Id=443949901 Component= [12/02/2024 23:54:29.0780] [1] Setup is stopping now because of one or more critical errors. [12/02/2024 23:54:29.0780] [1] Finished executing component tasks. [12/02/2024 23:54:29.0793] [1] Ending processing Install-ExchangeOrganization [12/02/2024 23:58:35.0104] [0] CurrentResult setupbase.maincore:396: 0 [12/02/2024 23:58:35.0105] [0] End of Setup [12/02/2024 23:58:35.0105] [0] **********************************************

I inherited this server/exchange environment with the note 'exchange server has update issue' :| I'm not seeing what is missing from these logs. Any help would be appreciated.('Computers' OU does exist, this is the only related solution I could find)

Exchange | Hybrid management
Exchange | Hybrid management

The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.


Answer accepted by question author

Andy David - MVP 160.3K Reputation points MVP Volunteer Moderator
2024-12-03T16:08:58.6433333+00:00

If you run this, does it show any smoking gun?

https://microsoft.github.io/CSS-Exchange/Setup/SetupAssist/

Based on that error messages, the Exchange Security groups are not in the default OUs

OU=Mystery People

By default its

OU=Microsoft Exchange Security Groups,DC=domain,DC=com

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.