skip to Main Content

The following server roles are not installed: Management tools

The Exchange management tools is excellent to manage the Exchange organization. After we install Exchange management tools on the management server, an error shows that the following server roles are not installed: Management tools. More details can be found in ExchangeSetup.log. In this article, you will learn why this is happening and the solution for installing Exchange management tools.

Introduction

The MG01-2016 is our Management Server, and that’s where we want to install Exchange management tools. We did mount the Exchange Server ISO on the machine MG01-2016.

Good to know is that in Programs and Features, we don’t see Microsoft Exchange Server. It means that it’s not installed, and this is a new installation.

Have a look at the drive letter. In our example, the Exchange Server ISO is mount to the drive letter E:\. Run Command Prompt as administrator and run the command to install Exchange management tools.

C:\>E:\Setup.exe /IAcceptExchangeServerLicenseTerms /Role:ManagementTools

Microsoft Exchange Server 2016 Cumulative Update 20 Unattended Setup

Copying Files...
File copy complete. Setup will now collect additional information needed for installation.

Languages
Management tools
The following server roles are not installed: Management tools.

The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the :\ExchangeSetupLogs folder.

Management tools
The following server roles are not installed: Management tools.

The Exchange Server setup operation didn’t complete. More details can be found in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.

Why are we getting this error, and what is the solution for the following server roles are not installed: Management tools?

The installation mode is set to: ‘BuildToBuildUpgrade’

Go to the ExchangeSetupLogs folder and open the ExchangeSetup.log. In our example, the location is C:\ExchangeSetupLogs\ExchangeSetup.log.

ExchangeSetupLogs

For a better view, I did copy the logs as an output down below.

[05-08-2021 10:07:34.0141] [0] **********************************************
[05-08-2021 10:07:34.0141] [0] Starting Microsoft Exchange Server 2016 Setup
[05-08-2021 10:07:34.0141] [0] **********************************************
[05-08-2021 10:07:34.0157] [0] Local time zone: (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna.
[05-08-2021 10:07:34.0157] [0] Operating system version: Microsoft Windows NT 6.2.9200.0.
[05-08-2021 10:07:34.0157] [0] Setup version: 15.1.2242.4.
[05-08-2021 10:07:34.0157] [0] Logged on user: EXOIP\administrator.
[05-08-2021 10:07:34.0157] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
[05-08-2021 10:07:34.0313] [0] Command Line Parameter Name='iacceptexchangeserverlicenseterms', Value=''.
[05-08-2021 10:07:34.0313] [0] Command Line Parameter Name='roles', Value='Microsoft.Exchange.Management.Deployment.RoleCollection'.
[05-08-2021 10:07:34.0313] [0] Command Line Parameter Name='sourcedir', Value='E:\'.
[05-08-2021 10:07:34.0313] [0] Command Line Parameter Name='mode', Value='Install'.
[05-08-2021 10:07:34.0329] [0] RuntimeAssembly was started with the following command: '/IAcceptExchangeServerLicenseTerms /Role:ManagementTools /sourcedir:E:"'.
[05-08-2021 10:07:34.0329] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\v8.0, wasn't found.
[05-08-2021 10:07:34.0329] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\v14, wasn't found.
[05-08-2021 10:07:34.0329] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
[05-08-2021 10:07:34.0329] [0] Copying Files...
[05-08-2021 10:07:34.0345] [0] Starting copy from E:\Setup\ServerRoles\Common to C:\Windows\Temp\ExchangeSetup.
[05-08-2021 10:07:35.0423] [0] Finished copy from E:\Setup\ServerRoles\Common to C:\Windows\Temp\ExchangeSetup.
[05-08-2021 10:07:35.0423] [0] File copy complete.  Setup will now collect additional information needed for installation.
[05-08-2021 10:07:35.0438] [0] Assembly dll file location is C:\Windows\Temp\ExchangeSetup\Microsoft.Exchange.Setup.Console.dll
[05-08-2021 10:07:37.0220] [0] Setup is choosing the domain controller to use
[05-08-2021 10:07:44.0063] [0] Setup is choosing a local domain controller...
[05-08-2021 10:07:46.0454] [0] Setup has chosen the local domain controller DC01-2016.exoip.local for initial queries
[05-08-2021 10:07:46.0689] [0] PrepareAD has been run, and has replicated to this domain controller; so setup will use DC01-2016.exoip.local
[05-08-2021 10:07:46.0689] [0] Setup is choosing a global catalog...
[05-08-2021 10:07:46.0704] [0] Setup has chosen the global catalog server DC01-2016.exoip.local.
[05-08-2021 10:07:46.0704] [0] Setup will use the domain controller 'DC01-2016.exoip.local'.
[05-08-2021 10:07:46.0704] [0] Setup will use the global catalog 'DC01-2016.exoip.local'.
[05-08-2021 10:07:46.0704] [0] Exchange configuration container for the organization is 'CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=exoip,DC=local'.
[05-08-2021 10:07:46.0704] [0] Exchange organization container for the organization is 'CN=EXOIP,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=exoip,DC=local'.
[05-08-2021 10:07:46.0720] [0] Setup will search for an Exchange Server object for the local machine with name 'MG01-2016'.
[05-08-2021 10:07:46.0735] [0] No Exchange Server with identity 'MG01-2016' was found.
[05-08-2021 10:07:46.0782] [0] The following roles have been unpacked: 
[05-08-2021 10:07:46.0782] [0] The following datacenter roles are unpacked: 
[05-08-2021 10:07:46.0798] [0] The following roles are installed: AdminToolsRole 
[05-08-2021 10:07:46.0798] [0] The local server does not have any Exchange files installed.
[05-08-2021 10:07:46.0798] [0] Server Name=MG01-2016
[05-08-2021 10:07:46.0814] [0] Setup will use the path 'E:\' for installing Exchange.
[05-08-2021 10:07:46.0814] [0] The backup copy of the install path is 'C:\Program Files\Microsoft\Exchange Server\V15'.
[05-08-2021 10:07:46.0814] [0] The backup copy of the previously installed version is '15.1.2176.2'.
[05-08-2021 10:07:46.0814] [0] The installation mode is set to: 'BuildToBuildUpgrade'.
[05-08-2021 10:07:49.0626] [0] An Exchange organization with name 'EXOIP' was found in this forest.
[05-08-2021 10:07:49.0626] [0] Active Directory Initialization status : 'True'.
[05-08-2021 10:07:49.0626] [0] Schema Update Required Status : 'False'.
[05-08-2021 10:07:49.0626] [0] Organization Configuration Update Required Status : 'False'.
[05-08-2021 10:07:49.0626] [0] Domain Configuration Update Required Status : 'False'.
[05-08-2021 10:07:49.0798] [0] Setup is determining what organization-level operations to perform.
[05-08-2021 10:07:49.0798] [0] Because the value was specified, setup is setting the argument OrganizationName to the value EXOIP.
[05-08-2021 10:07:49.0798] [0] MSI was not present; Installing to saved location C:\Program Files\Microsoft\Exchange Server\V15
[05-08-2021 10:07:49.0814] [0] RootDataHandler has 1 DataHandlers
[05-08-2021 10:07:49.0814] [0]      Languages
[05-08-2021 10:07:49.0814] [0]      Management tools
[05-08-2021 10:07:49.0845] [0] Validating options for the 1 requested roles
[05-08-2021 10:07:49.0845] [0] UpgradeModeDataHandler has 9 handlers and 9 work units
[05-08-2021 10:07:49.0861] [0] [ERROR] The following server roles are not installed: Management tools.
[05-08-2021 10:07:49.0861] [0] CurrentResult console.ProcessRunInternal:90: 1
[05-08-2021 10:07:49.0861] [0] CurrentResult launcherbase.maincore:90: 1
[05-08-2021 10:07:49.0861] [0] CurrentResult console.startmain:52: 1
[05-08-2021 10:07:49.0861] [0] CurrentResult SetupLauncherHelper.loadassembly:452: 1
[05-08-2021 10:07:49.0861] [0] The Exchange Server setup operation didn't complete.  More details can be found in ExchangeSetup.log located in the :\ExchangeSetupLogs folder.
[05-08-2021 10:07:49.0861] [0] CurrentResult main.run:235: 1
[05-08-2021 10:07:49.0861] [0] The registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer\V15\Setup, wasn't found.
[05-08-2021 10:07:49.0861] [0] CurrentResult setupbase.maincore:396: 1
[05-08-2021 10:07:49.0861] [0] End of Setup
[05-08-2021 10:07:49.0861] [0] **********************************************

Look at the text: The installation mode is set to: ‘BuildToBuildUpgrade’. It means that the install/upgrade/uninstall failed, and it left in a broken state.

The installation mode is set to BuildToBuildUpgrade

In such a situation, we can remove a couple of registry values in Registry Editor. Run Registry Editor as administrator. Go to the ExchangeServer registry path.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer
ExchangeServer registry key

Under de ExchangeServer registry key, we can see the Exchange Server version. In this example, it’s V15 (Exchange Server 2016). Let’s go through the subkeys and check for the following values and remove them:

  • Action
  • Watermark
Remove Action and Watermark values

After that, we did run the command to install Exchange management tools, and it didn’t work. The same error as output in Command Prompt and the same error in the ExchangeSetup.log.

Let’s do one more thing.

Solution for the following server roles are not installed: Management tools

We removed the values in the previous step, and it didn’t work. We can rename the Exchange Server registry key and Exchange Server installation folder.

Rename Exchange Server registry key

Rename Exchange Server registry key from ExchangeServer to ExchangeServer.old.

Rename ExchangeServer registry key

Rename Exchange Server installation folder

Rename Exchange Server install folder from Exchange Server to Exchange Server.old.

Rename Exchange Server installation folder

Restart the machine. If you don’t and start the Exchange management tools setup, you will get the message: A reboot from a previous installation is pending. Please restart the system and then rerun Setup.

Install Exchange management tools

After the restart, mount the Exchange Server ISO. Run Command Prompt as administrator and run the command to install Exchange management tools.

C:\>E:\Setup.exe /IAcceptExchangeServerLicenseTerms /Role:ManagementTools

Microsoft Exchange Server 2016 Cumulative Update 20 Unattended Setup

Copying Files...
File copy complete. Setup will now collect additional information needed for installation.

Languages
Management tools

Performing Microsoft Exchange Server Prerequisite Check

    Configuring Prerequisites                                                                         COMPLETED
    Prerequisite Analysis                                                                             COMPLETED

Configuring Microsoft Exchange Server

    Preparing Setup                                                                                   COMPLETED
    Stopping Services                                                                                 COMPLETED
    Copying Exchange Files                                                                            COMPLETED
    Language Files                                                                                    COMPLETED
    Restoring Services                                                                                COMPLETED
    Language Configuration                                                                            COMPLETED
    Exchange Management Tools                                                                         COMPLETED
    Finalizing Setup                                                                                  COMPLETED

The Exchange Server setup operation completed successfully.

Exchange management tools installed successfully. Don’t forget to remove the ExchangeServer.old registry key, and Exchange Server.old folder to keep it clean.

Read more: Exchange hybrid management tools »

Conclusion

In this article, you learned why the Exchange management tools is not installing. The solution to this problem is to rename the Exchange Server registry key and Exchange Server installation folder. After that, you can install Exchange management tools.

Did you enjoy this article? You may also like Load Exchange Management Shell in PowerShell ISE. Don’t forget to follow us and share this article.

ALI TAJRAN

ALI TAJRAN

ALI TAJRAN is a passionate IT Architect, IT Consultant, and Microsoft Certified Trainer. He started Information Technology at a very young age, and his goal is to teach and inspire others. Read more »

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top