Tag: Exchange 2016

Microsoft Exchange 2016 Installation “Couldn’t find the Enterprise Organization container”

Today I continued installing Microsoft Exchange 2016 on Windows Server 2016 in my lab environment. It looked like I was making some progress, the forest preparation was executed perfectly but then the installation started with the active directory preparation. After a couple of seconds, it failed… so it was time to start troubleshooting again to figure out what was going on.

Environment

To give you some insight into the environment, the following virtual machines were related to the problem:

  • DC01: Windows Server 2012 R2 – Domain Controller running all FSMO roles
  • EXH01: Windows Server 2016 – A new server that will become an Exchange 2016 server.

In the past the domain controller had a Microsoft Exchange 2013 server joined but that was removed about two years ago. I guest that there were still registrations in the Active Directory schema that were not removed.

Problem

The following error appeared (Couldn’t find the Enterprise Organization container) in the Exchange Server 2016 setup log file, here is an overview of the location and error message:

  • Logfile: C:\ExchangeSetupLogs\ExchangeSetup.txt
  • Error message: [REQUIRED] Setup encountered a problem while validating the state of Active Directory: Couldn’t find the Enterprise Organization container.

Solution

I found a solution… but I do not think Microsoft officially supports it. Keep in mind: if you are still running an Exchange Server infrastructure you will probably destroy it! Here is a write-up to fix the validation issues:

  1. Start an RDP session with the Domain Controller.
  2. Login with administrative credentials.
  3. Open the following tool “ADSI Edit“.
  4. Connect to the “default-naming context“.
  5. Delete the following two CNs completely, including all content:
    CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Lab,DC=local
    CN=CN=Microsoft Exchange Autodiscover,CN=Services,CN=Configuration,DC=Lab,DC=local
  6. Restart the Microsoft Exchange Server.
  7. Start the Exchange Server 2016 installation again.
  8. Follow the installation wizard.
  9. The problems should be resolved.

Final word

After performing the described steps on my domain environment, the problems were gone and the Microsoft Exchange Server was running without problems. Like I said before, be careful with executing the steps, you are really making a major change in the Active Directory that might affect other components.

Installation Microsoft Exhange 2016 on Windows Server 2016

Today I was installing Microsoft Exchange 2016 on a new Windows Server 2016 purely for lab and education purposes. The Windows Installation was finished all Windows Updates were installed and now it was time to start the Microsoft Exchange installation! I had downloaded the installation media some time ago from the Microsoft website (this is where the mistake began), please read further for the explanation.

Exchange 2016 – Readiness Checks Error

After starting the setup wizard and the Readiness Checks the following error appeared:

Error: The Windows component Server-Gui-Mgmt-Infra isn’t installed on this computer and needs to be installed before Exchange Setup can begin.

Exchange 2016 on Windows Server 2016 - Readiness Checks Failing
Exchange 2016 on Windows Server 2016 – Readiness Checks Failing

Exchange 2016 – Running PowerShell Commands

So I tried installing the required components with the following PowerShell command, just as requested by the Readiness Checks page:

### PowerShell installation command
Install-WindowsFeature Server-Gui-Mgmt-Infra, Server-Gui-Shell -Restart

This is the result of running this PowerShell command-let on the Windows Server 2016 machine. The error states “The role, role service, or feature name is not valid“.

Exchange 2016 on Windows Server 2016 - PowerShell not installing modules
Exchange 2016 on Windows Server 2016 – PowerShell not installing modules

Apparently “Server-Gui-Mgmt-Infra” isn’t something you can install on Windows Server 2016 machine…

Solution to the installation problem

So after some thinking, I realized that the Exchange 2016 application was released much earlier than the Windows Server 2016 operating system… After some searching, I found the latest “Exchange 2016 CU6 release” on the Microsoft.com website.

It appears that every Cumulative Update (CU) is released in the form of a new ISO file which is also the installation media and update media. After downloading the CU6 iso and running the installation everything was working without any problems.