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

前端之家收集整理的这篇文章主要介绍了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从一个转换为另一个的功能.

猜你在找的Windows相关文章