加入收藏 | 设为首页 | 会员中心 | 我要投稿 辽源站长网 (https://www.0437zz.com/)- 云专线、云连接、智能数据、边缘计算、数据安全!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

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

发布时间:2021-05-20 22:14:52 所属栏目:Windows 来源:网络整理
导读:我们刚从Rackspace获得了专用服务器.它装载了W2008.我决定把最新的操作系统放在上面,所以我不必在以后升级它.显然在安装过程中,我选择了no gui选项. 我尝试从powershell安装gui,我在其他网站上看到过这个gui. 例如: Install-WindowsFeature Server-GUI-Shel

我们刚从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从一个转换为另一个的功能.

(编辑:辽源站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读