无法将Server-Gui-Mgmt-Infra安装在Server Core上

每次尝试在服务器核心上安装pipe理GUI时,都会出现此错误。

Install-WindowsFeature : The request to add or remove features on the specified server failed. Installation of one or more roles, role services, or features failed. The source files could not be downloaded. Use the "source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f0906 At line:1 char:1 + Install-WindowsFeature Server-Gui-Mgmt-Infra -Source C:\mountdir\Windows\WinSxS + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature],Exception + FullyQualifiedErrorId : DISMAPI_Error__Cbs_Download_Failure,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand 

在DISM下我得到以下

 Error: 0x800f081f The source files could not be found. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077. The DISM log file can be found at C:\Windows\Logs\DISM\dism.log 

DISM日志: https : //gist.github.com/michael-manley/5329139

当我尝试使用WIM文件的命令时,通常会发生这种情况,因为它会尝试从Windows Update中下载。 我尝试了wim:D:\ sources \ install.wim:2方法,并且使用C:\ mountdir \ Windows \ WinSxS方法,都失败。 服务器是完全最新的。 我已经尝试了从新安装的Server 2012 Standard完全更新的补丁WIM。

我使用下面的链接进行了testing。 不知道为什么,但与一个新的服务器核心构build(我禁用UAC暂时FYI),并改变是最后一个命令只包括服务器gui-mgmt-infra似乎有点矫枉过正,并得到一个function安装。 我还没有用服务器核心RTM构build进行广泛的testing。 在testing期间,我记得能够使用Add-WindowsFeaure-Naming Server-GUI-Mgmt-Infra -source c:\ sxs但是在RTM期间不会猜测:(我无法得到的是使用UNCpath作为源代码,甚至现在。

http://virtualisationandmanagement.wordpress.com/2012/08/09/windows-2012-converting-a-full-gui-version-to-server-core-and-vice-versa/

首先,好的部分。 您可以使用DVD作为来源。

 Install-WindowsFeature -Name User-Interfaces-Infra -IncludeAllSubfeature -Source D:\ Install-WindowsFeature -Name Server-Gui-Mgmt-Infra, Server-Gui-Shell -Source D:\ 

接下来是坏的一部分 过去我已经成功地使用了这些命令。 但今天,他们不为我工作。 我已经尝试使用ISO作为源,我试过使用一个挂载的install.wim,都没有成功 – 我得到相同的消息作为OP。

一些networkingsearchfind我如何更新本地源媒体添加angular色和function 。 它说,要将function添加到现有的Windows副本中,您从中安装的源必须与Windows副本处于相同的修补程序级别 。 不幸的是,WSUS并不是解决scheme – 您必须手动将所有软件包应用于已安装的映像,然后才能使用它来添加function。

我想微软对此的回答是“只使用-online开关”。 我的回答是“是的,没错”。

尝试了所有的解决scheme,包括手动安装的所有更新的ISO应用。 一切都失败了 然而,我想到了这个过程想要做什么,并想到了将命令指向另一个运行GUI的服务器,并且工作。 希望这可以帮助别人。 句法:

 Dism /Online /Enable-Feature /FeatureName:ServerCore-Gui-Mgmt /Source:\\[server]\c$\Windows\WinSxS /LimitAccess 

将ISO中的sxs / sources文件夹复制到服务器上的本地path(可以说i386文件夹),并在您的命令行中指出sources文件夹的位置。 我尝试了UNCpath,失败了。 我们将我们的服务器放在无法访问互联网的地方。

我遇到与Desktop-Experiencefunction相同的问题。 我在网上find的解决scheme都不起作用。

在最后的努力中,我尝试运行Server 2012 R2 CD上的setup.exe来“更新”我目前的Server 2012 R2安装到“Server 2012 R2”。

这工作和configuration幸存下来(包括域成员资格)。 我只需要重新设置IP地址。

我不知道这可能会打破它看起来像是在我的服务器上工作。

首先在install.wim中确认你的版本索引:

 dism /get-wiminfo /wimfile:d:\sources\install.wim 

它将生成Win Server 2012 R2 SERVERSTANDARD作为索引2,然后:

 Intall-WindowsFeature Server-Gui-Mgmt-Infra -Source:wim:d:\sources\install.wim:2 

最后一个数字是版本索引,如果在SERVERDATACENTERCORE中运行,则更改为4。

真的尝试了列出的所有解决scheme,最终这在我的2012 R2核心上工作:

Dism /online /enable-feature /featurename:X /All /Source:D:\sources\sxs /LimitAccess

其中X是Dism格式中您想要的function名称(注意:它与PowerShell中的名称不同,您将不得不search它,例如,我的function名称是“telnetserver”与powershell“telnet-server”)

如此处所述,当您需要从Windows安装介质获取其他function的源文件时,正确的path是\sources\sxs而不是 \Windows\WinSxS

所以,你的命令是错的。 如果您在C:\mountdir下安装了Windows ISO映像,则应使用Install-WindowsFeature Server-Gui-Mgmt-Infra -Source C:\mountdir\sources\sxs

尝试了所有这些。 (真是一个晚上!)最后,David用了一个相邻的服务器来解决问题,这个想法很好。 我不得不添加一个/All的命令:

 Dism /Online /Enable-Feature /FeatureName:Server-Gui-Mgmt /All /Source:\\[server fqdn]\c$\Windows\WinSxS /LimitAccess