小编Som*_*ial的帖子

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

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

我试图从我在其他网站上看到的参考的 powershell 安装 gui。

例如:

Install-WindowsFeature Server-GUI-Shell -Restart
Run Code Online (Sandbox Code Playgroud)

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

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    {}
Run Code Online (Sandbox Code Playgroud)

我似乎无法弄清楚如何在此服务器上安装 gui。

我见过的所有安装 gui 的参考都说要使用 Server-GUI-Shell。 …

powershell windows-server-core windows-server-2016

29
推荐指数
1
解决办法
11万
查看次数