当前位置:网站首页 > 更多 > 玩电脑 > 正文

[玩转系统] 未安装以下服务器角色: 管理工具

作者:精品下载站 日期:2024-12-14 03:24:32 浏览:14 分类:玩电脑

未安装以下服务器角色: 管理工具


Exchange 管理工具非常适合管理 Exchange 组织。在管理服务器上安装 Exchange 管理工具后,出现错误,显示未安装以下服务器角色: 管理工具。更多详细信息可以在 ExchangeSetup.log 中找到。在本文中,您将了解发生这种情况的原因以及安装 Exchange 管理工具的解决方案。

介绍

MG01-2016 是我们的管理服务器,我们要在其中安装 Exchange 管理工具。我们确实在机器 MG01-2016 上安装了 Exchange Server ISO。

值得高兴的是,在程序和功能中,我们看不到 Microsoft Exchange Server。意思是还没有安装,这是新安装的。

查看驱动器盘符。在我们的示例中,Exchange Server ISO 安装到驱动器号 E:\。以管理员身份运行命令提示符并运行命令来安装 Exchange 管理工具。

C:\>E:\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF /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 <SystemDrive>:\ExchangeSetupLogs folder.

管理工具
未安装以下服务器角色:管理工具。

Exchange Server 安装操作未完成。更多详细信息可以在位于 :\ExchangeSetupLogs 文件夹中的 ExchangeSetup.log 中找到。

为什么我们会收到此错误,未安装以下服务器角色的解决方案是什么:管理工具?

安装模式设置为:‘BuildToBuildUpgrade’

转到 ExchangeSetupLogs 文件夹并打开 ExchangeSetup.log。在我们的示例中,位置为 C:\ExchangeSetupLogs\ExchangeSetup.log。

[玩转系统] 未安装以下服务器角色: 管理工具

为了更好地查看,我确实将日志复制为下面的输出。

[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_DiagnosticDataOFF /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 <SystemDrive>:\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] **********************************************

看文字:安装模式设置为:‘BuildToBuildUpgrade’。这意味着安装/升级/卸载失败,并且处于损坏状态。

[玩转系统] 未安装以下服务器角色: 管理工具

在这种情况下,我们可以在注册表编辑器中删除几个注册表值。以管理员身份运行注册表编辑器。转到 ExchangeServer 注册表路径。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ExchangeServer

[玩转系统] 未安装以下服务器角色: 管理工具

ExchangeServer注册表项下,我们可以看到Exchange Server的版本。在此示例中,它是 V15 (Exchange Server 2016)。让我们检查子项并检查以下值并将其删除:

  • 行动
  • 水印

[玩转系统] 未安装以下服务器角色: 管理工具

之后,我们确实运行了安装Exchange管理工具的命令,但没有成功。与命令提示符中的输出相同的错误以及 ExchangeSetup.log 中的相同错误。

我们再做一件事。

未安装以下服务器角色的解决方案: 管理工具

我们删除了上一步中的值,但它不起作用。我们可以重命名Exchange Server注册表项和Exchange Server安装文件夹。

重命名 Exchange Server 注册表项

将 Exchange Server 注册表项从 ExchangeServer 重命名为 ExchangeServer.old

[玩转系统] 未安装以下服务器角色: 管理工具

重命名 Exchange Server 安装文件夹

将 Exchange Server 安装文件夹从 Exchange Server 重命名为 Exchange Server.old

[玩转系统] 未安装以下服务器角色: 管理工具

重新启动机器。如果您不这样做并启动 Exchange 管理工具安装,您将收到消息:从以前的安装重新启动正在等待。请重新启动系统,然后重新运行安装程序。

安装 Exchange 管理工具

重新启动后,安装 Exchange Server ISO。以管理员身份运行命令提示符并运行命令来安装 Exchange 管理工具。

C:\>E:\Setup.exe /IAcceptExchangeServerLicenseTerms_DiagnosticDataOFF /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 管理工具安装成功。不要忘记删除 ExchangeServer.old 注册表项和 Exchange Server.old 文件夹以保持干净。

了解更多:Exchange 混合管理工具 »

结论

在本文中,您了解了为什么未安装 Exchange 管理工具。此问题的解决方案是重命名 Exchange Server 注册表项和 Exchange Server 安装文件夹。之后,您可以安装Exchange管理工具。

您喜欢这篇文章吗?您可能还喜欢 PowerShell ISE 中的 Load Exchange Management Shell。不要忘记关注我们并分享这篇文章。

您需要 登录账户 后才能发表评论

取消回复欢迎 发表评论:

关灯