Error installing exchange 2013 on server 2012 R2

I can't install exchange server. please help me to solve this problem.

Error:

The following error was generated when "$error.Clear();

          if (($RoleIsDatacenter -ne $true) -and ($RoleIsDatacenterDedicated -ne $true))

          {

          if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)

          {

          $sysMbx = $null;

          $name = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";

          $dispname = "Microsoft Exchange";

          $mbxs = @( get-mailbox -arbitration -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );

          if ( $mbxs.length -eq 0)

          {

          $dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);

          if ($dbs.Length -ne 0)

          {

          $arbUsers = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);

          if ($arbUsers.Length -ne 0)

          {

          $sysMbx = enable-mailbox -Arbitration -identity $arbUsers[0] -DisplayName $dispname -database $dbs[0].Identity;

          }

          }

          }

          else

          {

          if ($mbxs[0].DisplayName -ne $dispname )

          {

          set-mailbox -Arbitration -identity $mbxs[0] -DisplayName $dispname -Force;

          }

          $sysMbx = $mbxs[0];

          }

          # Set the Organization Capabilities needed for this mailbox

          if ($sysMbx -ne $null)

          {

          Write-ExchangeSetupLog -Info ("Setting mailbox properties.");

          set-mailbox -Arbitration -identity $sysMbx -UMDataStorage:$true -Force;

          # No RetentionPolicy assigned to E-Discovery arbitration mailbox currently, we need to set it here.

          # This can be remove after BUG(O15#2555914) is fixed.

          if ($sysMbx.RetentionPolicy -eq $null )

          {

          $arbitrationRetentionPolicy = @(Get-RetentionPolicy -DomainController $RoleDomainController | where {$_.Name -eq 'ArbitrationMailbox'});

          set-mailbox -Arbitration -identity $sysMbx -RetentionPolicy $arbitrationRetentionPolicy[0].Identity -Force;

          }

          }

          else

          {

          Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.");

          }

          }

          else

          {

          write-exchangesetuplog -info "Skipping creating Discovery Arbitration Mailbox because of insufficient permission."

          }

          }

        " was run: "Database is mandatory on UserMailbox.".

Error:

The following error was generated when "$error.Clear();

          if (($RoleIsDatacenter -ne $true) -and ($RoleIsDatacenterDedicated -ne $true))

          {

          if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)

          {

          $sysMbx = $null;

          $name = "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}";

          $dispname = "Microsoft Exchange";

          $mbxs = @( get-mailbox -arbitration -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );

          if ( $mbxs.length -eq 0)

          {

          $dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);

          if ($dbs.Length -ne 0)

          {

          $arbUsers = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);

          if ($arbUsers.Length -ne 0)

          {

          $sysMbx = enable-mailbox -Arbitration -identity $arbUsers[0] -DisplayName $dispname -database $dbs[0].Identity;

          }

          }

          }

          else

          {

          if ($mbxs[0].DisplayName -ne $dispname )

          {

          set-mailbox -Arbitration -identity $mbxs[0] -DisplayName $dispname -Force;

          }

          $sysMbx = $mbxs[0];

          }

          # Set the Organization Capabilities needed for this mailbox

          if ($sysMbx -ne $null)

          {

          Write-ExchangeSetupLog -Info ("Setting mailbox properties.");

          set-mailbox -Arbitration -identity $sysMbx -UMDataStorage:$true -Force;

          # No RetentionPolicy assigned to E-Discovery arbitration mailbox currently, we need to set it here.

          # This can be remove after BUG(O15#2555914) is fixed.

          if ($sysMbx.RetentionPolicy -eq $null )

          {

          $arbitrationRetentionPolicy = @(Get-RetentionPolicy -DomainController $RoleDomainController | where {$_.Name -eq 'ArbitrationMailbox'});

          set-mailbox -Arbitration -identity $sysMbx -RetentionPolicy $arbitrationRetentionPolicy[0].Identity -Force;

          }

          }

          else

          {

          Write-ExchangeSetupLog -Info ("Cannot find E-discovery arbitration mailbox with name=$name.");

          }

          }

          else

          {

          write-exchangesetuplog -info "Skipping creating Discovery Arbitration Mailbox because of insufficient permission."

          }

          }

        " was run: "Database is mandatory on UserMailbox.".

April 22nd, 2015 6:12am

Hi Ramin,

Hope you are installing it on a seperate server other than the DC.

Please confirm you have the correct permissions to install it.

Try to follow the steps from Exchange Deployment Assitant.

Review and post any errors in the eventvwr or Exchange Setup logs.

These logs are written to C:\ExchangeSetupLogs by default.

Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2015 7:11am

yes, that is separate server other than DC. After Migration exchange 2010 to 2013 now i can't install ex02 for DAG purpose in my environment due to reason. 
April 25th, 2015 11:48pm

Hi Ramin,

What about the logs asked in my earlier post. This is the only means we can troublesho

Free Windows Admin Tool Kit Click here and download it now
April 27th, 2015 3:53am

Hi Hossain,

Thank you for your question.

By this error, when we run the following command:

Get-Mailbox Arbitration  | Format-Table Name, ServerName, Database auto

We will find the property of Database is null on the mailbox of SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}.

Then we use the follow command to re-home the arbitration mailbox which didnt have database attribute:

Set-Mailbox SystemMailbox{ e0dc1c29-89c3-4034-b678-e6c29d823ed9} -Arbitration -Database YourDatabaseNameHere

Then we could run setup again.

We could refer to the following link:

http://social.technet.microsoft.com/wiki/contents/articles/25342.exchange-2013-setup-error-database-is-mandatory-on-usermailbox.aspx

If there are any questions regarding this issue, please be free to let me know. 

Best Regard,

Jim

April 28th, 2015 7:29am

Error:
The following error was generated when "$error.Clear(); 
          if (($RoleIsDatacenter -ne $true) -and ($RoleIsDatacenterDedicated -ne $true))
          {
            if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
            {
              # upgrade the discovery mailboxes to R5 version, this will fix the RecipientDisplayType property of the discovery mailbox which was wrong in R4.
              get-mailbox -RecipientTypeDetails DiscoveryMailbox -DomainController $RoleDomainController | where {$_.IsValid -eq $false} | set-mailbox -DomainController $RoleDomainController
              $name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
              $dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
              $mbxs = @( get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
              if ( $mbxs.length -eq 0) 
              {
                $dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
                if($dbs.Length -ne 0) 
                {
                  $mbxUser = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
                  if ($mbxUser.Length -ne 0) 
                  {
                    enable-mailbox -Discovery -identity $mbxUser[0] -DisplayName $dispname -database $dbs[0].Identity;
                  }
                }
              }
            }
            else
            {
              write-exchangesetuplog -info "Skipping creating Discovery Search Mailbox because of insufficient permission."
            }  
          }
        " was run: "Database is mandatory on UserMailbox.".

Error:
The following error was generated when "$error.Clear(); 
          if (($RoleIsDatacenter -ne $true) -and ($RoleIsDatacenterDedicated -ne $true))
          {
            if (test-ExchangeServersWriteAccess -DomainController $RoleDomainController -ErrorAction SilentlyContinue)
            {
              # upgrade the discovery mailboxes to R5 version, this will fix the RecipientDisplayType property of the discovery mailbox which was wrong in R4.
              get-mailbox -RecipientTypeDetails DiscoveryMailbox -DomainController $RoleDomainController | where {$_.IsValid -eq $false} | set-mailbox -DomainController $RoleDomainController
              $name = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxUniqueName;
              $dispname = [Microsoft.Exchange.Management.RecipientTasks.EnableMailbox]::DiscoveryMailboxDisplayName;
              $mbxs = @( get-mailbox -Filter {name -eq $name} -IgnoreDefaultScope -resultSize 1 );
              if ( $mbxs.length -eq 0) 
              {
                $dbs = @(get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
                if($dbs.Length -ne 0) 
                {
                  $mbxUser = @(get-user -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
                  if ($mbxUser.Length -ne 0) 
                  {
                    enable-mailbox -Discovery -identity $mbxUser[0] -DisplayName $dispname -database $dbs[0].Identity;
                  }
                }
              }
            }
            else
            {
              write-exchangesetuplog -info "Skipping creating Discovery Search Mailbox because of insufficient permission."
            }  
          }
        " was run: "Database is mandatory on UserMailbox.".
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2015 3:09pm

First Reset the Password DiscoverySearchMailbox and go to Exchange Management Shell and Enter the below commend.

Disable-Mailbox -identity "DiscoverySearchMailbox {D919BA05-46A6-415f-80AD-7E09334BB852}" 

May 4th, 2015 1:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics