65.9K
CodeProject 正在变化。 阅读更多。
Home

在 Windows Server 2012 上安装 SharePoint 2013 时,配置应用程序服务器角色、Web 服务器 (IIS) 角色错误

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0投票)

2019 年 1 月 22 日

CPOL

1分钟阅读

viewsIcon

4007

在 Windows Server 2012 上安装 SharePoint 2013 时,配置应用程序服务器角色、Web 服务器 (IIS) 角色错误

Issue

在使用安装程序配置 SharePoint 2013 农场先决条件时,出现了此错误。

使用 AutoSPInstaller 时,会以以下错误结束

2019-01-22 09:48:02 - Return code (2)
2019-01-22 09:48:02 - It is recommended that you keep your 
Windows operating system up to date on <a href="http://windowsupdate.microsoft.com">http://windowsupdate.microsoft.com</a>

当您尝试 SharePoint 先决条件安装程序 (prerequisiteinstaller.exe) 时,会以以下错误结束。

应用程序服务器角色、Web 服务器 (IIS) 角色:配置错误

如何解决此问题

导致此问题的理由有很多。

解决方案 1

尝试使用管理员帐户执行安装程序,并且您必须是服务器上的本地管理员。

解决方案 2

使用服务器管理器手动安装 .NET 组件。

添加角色和功能,然后跳过直到到达 功能

并按照描述安装 .NET 3.5 和 4.5。您可能需要插入源路径以安装 3.5 Framework。

解决方案 3

有时,由于各种问题,安装程序可能无法执行 shell 命令,因此

  • 将 Windows Server 安装程序 CD 挂载到驱动器 (假设 E:\)
  • 在 PowerShell 中运行以下代码

  • 确保您已连接

在 PowerShell 中执行以下代码

Add-WindowsFeature Web-Server,Windows-Identity-Foundation,
NET-Framework-45-ASPNET,Web-Mgmt-Console,Web-Mgmt-Compat,
Web-Metabase,Web-Lgcy-Mgmt-Console,Web-Lgcy-Scripting,
Web-Mgmt-Tools,Web-WMI,Web-Common-HTTP,NET-HTTP-Activation,
NET-Non-HTTP-Activ,NET-WCF-HTTP-Activation45 -Source 'E:\sources\sxs'

解决方案 4

该工具尝试执行位于

  • %SystemRoot%\system32\ServerManagerCSD.exe 的应用程序

但当前的 Windows Server 安装程序将服务器管理器命名为不同的名称

  • %SystemRoot%\system32\ServerManager.exe

因此,只需复制 ServerManager.exe 并粘贴并将其重命名为 ServerManagerCMD.exe

© . All rights reserved.