微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

powershell – 如何将Windows GUI添加到Windows 2016 Server Core?

我们刚从Rackspace获得了专用服务器.它装载了W2008.我决定把最新的操作系统放在上面,所以我不必在以后升级它.显然在安装过程中,我选择了no gui选项.

我尝试从powershell安装gui,我在其他网站上看到过这个gui.

例如:

Install-WindowsFeature Server-GUI-Shell -Restart

当我运行它时,我收到以下错误

PS C:\> Install-WindowsFeature Server-GUI-Shell -Restart
Install-WindowsFeature : ArgumentNotValid: The role,role service,or feature name is not valid: 'Server-GUI-Shell'.
The name was not found.
At line:1 char:1
+ Install-WindowsFeature Server-GUI-Shell -Restart
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Server-GUI-Shell:String) [Install-WindowsFeature],Exception
    + FullyQualifiedErrorId : NameDoesNotExist,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

Success Restart Needed Exit Code      Feature Result
------- -------------- ---------      --------------
False   No             InvalidArgs    {}

我似乎无法弄清楚如何在这台服务器上安装一个gui.

我见过安装gui的所有引用都说使用Server-GUI-Shell.

有人有什么建议吗?

在Server 2016中,无法再通过服务器管理器,PowerShell或disM从服务器核心切换到完整GUI,反之亦然.您必须在安装时首先做出选择.
TechNet开始:

Unlike some prevIoUs releases of Windows Server,you cannot convert
between Server Core and Server with Desktop Experience after
installation. For example,if you install Server Core and later decide
to user Server with Desktop Experience,you should do a fresh
installation (and vice versa).

关于该主题的一篇很好的社区文章https://superwidgets.wordpress.com/2016/10/29/windows-server-2016-gui-options/

Server 2012和Server 2012 R2中存在通过服务器管理器和Install / Remove-WindowsFeature cmdlet从一个转换为另一个功能.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐