Windows Server 2012 之开启和关闭GUI

一.安装核心板是没有图形界面的,可以简单地安装GUI任务便可切换到GUI上去,不需要的时候还可以卸载掉,而不必选择全安装。以使用GUI去照看所有平淡无奇的配置任务,但是当机器已经准备好用于生产时,你也可以卸掉GUI。这样做提供了很多好处,其中就包括减少了攻击面、降低了资源负载和能源消耗.

可通过PowerShell命令安装GUI.

1.使用 Windows Update  代替 a WIM file 进行安装:

>PowerShell
>Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell -Restart

2.通过光盘映像安装

>PowerShell

//查询映像文件是否为完全安装映像
>Dism /get-wininfo /wimfile:<drive>:\sources\Install.wim  

//查询组件名
>Get-WindowsFeature“server*” 

//查询安装命令
>Get-Command “*windowsf*”

//创建磁盘加载目录  
>mkdir c:\mountdir

//加载映像
>Dism  /mount-wim  /WimFile:<drive>:\sources\Install.wim   /index<#from_step_2>   /MountDir:c:\mountdir\   /readonly  

//安装GUI
>Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell  –Restart

3.卸载GUI:

>PowerShell
>Ununstall-WindowsFeature Server-Gui-Shell, Server-Gui-Mgmt-Infra –Restarts

image

image

posted @ 2013-11-24 09:15  蔡zhibin  阅读(2949)  评论(0编辑  收藏  举报