PowerShell
switch ($id)
{
"1" {Uninstall-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell}
"2" {Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell}
"3" {
Import-Module Dism
Enable-WindowsOptionalFeature -online -Featurename ServerCore-FullServer,Server-Gui-Shell,Server-Gui-Mgmt
}
}
本文出自 “汜水流年_” 博客,请务必保留此出处http://timefiles.blog.51cto.com/8475652/1612216
Powershell 给server core 系统安装图形界面
原文地址:http://timefiles.blog.51cto.com/8475652/1612216