< -- BuySellAds Ad Code ALLEN -->

Exchange 2013 Install Error was generated when $error.Clear

During a test migrate of Exchange 2013 I came across the error below when trying to initially install Exchange 2013, resolution after the 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{bb558c35-97f1-4cb9-8ff7-d53741dc928c}”;
$dispName = “Microsoft Exchange”;
Write-ExchangeSetupLog -Info (“Retrieving mailboxes with Name=$name.”);
$mbxs = @(Get-Mailbox -Arbitration -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1 );
if ($mbxs.Length -eq 0)
Write-ExchangeSetupLog -Info (“Retrieving mailbox databases on Server=$RoleFqdnOrName.”);
$dbs = @(Get-MailboxDatabase -Server:$RoleFqdnOrName -DomainController $RoleDomainController);
if ($dbs.Length -ne 0)
Write-ExchangeSetupLog -Info (“Retrieving users with Name=$name.”);
$arbUsers = @(Get-User -Filter {name -eq $name} -IgnoreDefaultScope -ResultSize 1);
if ($arbUsers.Length -ne 0)
Write-ExchangeSetupLog -Info (“Enabling mailbox $name.”);
$sysMbx = Enable-Mailbox -Arbitration -Identity $arbUsers[0] -DisplayName $dispName -database $dbs[0].Identity;
if ($mbxs[0].DisplayName -ne $dispName )
Write-ExchangeSetupLog -Info (“Setting DisplayName=$dispName.”);
Set-Mailbox -Arbitration -Identity $mbxs[0] -DisplayName $dispName -Force;
$sysMbx = $mbxs[0];

This error was down to the System Mailbox being corrupt so the install could not continue, to resolve this issue we can recreate the Exchange 2013 system mailbox.

Recreate System Mailbox in Exchange 2013

We must first delete the existing system mailbox if it exists and is corrupt, this is simple to do, in Active Directory Users and Computers do a search for the System user as seen below and delete it.


We now need to recreate this account, the easiest way to do this is by running the Exchange 2013 with ADPREP again, syntax seen below.

setup /PrepareAD [/OrganizationName:] 

Where Organization name is the name of you existing Org or what you would like to call your new Org. Once complete we can enable the system mailbox with the following command.

Enable-Mailbox -Arbitration -DomainController  -Identity "SystemMailbox{e0dc1c29-89c3-4034-b678-e6c29d823ed9}"

Once these three steps are done you will be able to continue you Exchange 2013 install.

Allen White

Allen is an IT Consultant and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5, 6 and HP ASE, AIS - Network Infrastructure.

Comments (2)

  • Avatar



    This article suprisingly fixed the issue.


Leave a comment



What Web Browser Do You Use?

View Results

Loading ... Loading ...


What do you prefer..VMware or Hyper-V?

View Results

Loading ... Loading ...