Share via

Exchange Server 2016 installation failed with an error message.

Gurudas Anand Satardekar 951 Reputation points
2022-07-31T19:46:54.397+00:00

I tried installing Exchange Server 2016 CU 23 on Windows Server 2012 R2 and got below mentioned error message. Please suggest. Thank you in advance.

Error:
The following error was generated when "$error.Clear();
$name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
$dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
$dismbx = get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1;
if( $dismbx -ne $null)
{
$srvname = $dismbx.ServerName;
if( $dismbx.Database -ne $null -and $RoleFqdnOrName -like "$srvname.*" )
{
Write-ExchangeSetupLog -info "Setup DiscoverySearchMailbox Permission.";
$mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };
if( $mountedMdb -eq $null )
{
Write-ExchangeSetupLog -info "Mounting database before stamp DiscoverySearchMailbox Permission...";
mount-database $dismbx.Database;
}

      $mountedMdb = get-mailboxdatabase $dismbx.Database -status | where { $_.Mounted -eq $true };  
      if( $mountedMdb -ne $null )  
      {  
      $dmRoleGroupGuid = [Microsoft.Exchange.Data.Directory.Management.RoleGroup]::DiscoveryManagement_InitInfo.WellKnownGuid;  
      $dmRoleGroup = Get-RoleGroup -Identity $dmRoleGroupGuid -DomainController $RoleDomainController -ErrorAction:SilentlyContinue;  
      if( $dmRoleGroup -ne $null )  
      {  
        trap [Exception]  
        {  
          Add-MailboxPermission $dismbx -User $dmRoleGroup.Name -AccessRights FullAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue;  
          continue;  
        }  
          
        Add-MailboxPermission $dismbx -User $dmRoleGroup.Identity -AccessRights FullAccess -DomainController $RoleDomainController -ErrorAction Stop -WarningAction SilentlyContinue;  
      }  
      }  
      }  
      }  
    " was run: "System.TypeInitializationException: The type initializer for 'Microsoft.Exchange.Configuration.Tasks.DataAccessHelper' threw an exception. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.  

at Microsoft.Exchange.Configuration.Tasks.DataAccessHelper..cctor()
--- End of inner exception stack trace ---
at Microsoft.Exchange.Configuration.Tasks.DataAccessHelper.IsDataAccessKnownException(Exception exception)
at Microsoft.Exchange.Management.RecipientTasks.SetMailboxPermissionTaskBase.IsKnownException(Exception exception)
at Microsoft.Exchange.Configuration.Tasks.Task.ProcessError(Exception exception, Boolean terminating, Boolean shouldRetryForRetryableError, Boolean shouldLogIfRetryNotHappens, Boolean& retryHappens)
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()".

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.


2 answers

Sort by: Most helpful
  1. Amit Singh 5,326 Reputation points
    2022-08-01T10:58:25.4+00:00

    According to error messages, you may need to recreate Arbitration Mailboxes. Here's a step-by-step guide for your reference: Recreate arbitration mailboxes in Exchange Server. Check if the above solution works for you.

    Similar Thread - https://learn.microsoft.com/en-us/answers/questions/301866/exchange-2016-cu-19-update-failed-at-mailbox-role.html

    Was this answer helpful?

    0 comments No comments

  2. Jame Xu-MSFT 4,201 Reputation points
    2022-08-01T04:02:44.23+00:00

    Hi @Gurudas Anand Satardekar ,
    Are you installing a new Exchange or a low version update?
    By analyzing the error message and related searches, the error may have the following two reasons:

    1. Check that the Exchange server meets the system requirements, the related error shows that there is not enough memory:
      https://learn.microsoft.com/en-us/exchange/plan-and-deploy/system-requirements?view=exchserver-2016
    2. Check that the prerequisites are installed correctly:
      https://learn.microsoft.com/en-us/exchange/plan-and-deploy/prerequisites?view=exchserver-2016
      You can also refer to this installation article:
      https://www.prajwaldesai.com/step-by-step-guide-to-install-exchange-server-2016/#:~:text=Exchange%20Server%202016%20can%20be%20installed%20on%20Windows,can%20be%20used%20to%20run%20Exchange%20Server%202016.
      Microsoft provides third-party contact information to help you find additional information about this topic. This contact information may change without notice. Microsoft does not guarantee the accuracy of third-party contact information.

    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

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.