Powershell 给server core 系统安装图形界面

简介:


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 
                } 
        }














本文转自bard_zhang51CTO博客,原文链接: http://blog.51cto.com/timefiles/1612216,如需转载请自行联系原作者










相关文章
|
监控 Windows
Windows Server端口监控之powershell脚本
powershell检测端口并重启程序
678 0