zoukankan      html  css  js  c++  java
  • 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>:sourcesInstall.wim  

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

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

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

    //加载映像
    >Dism  /mount-wim  /WimFile:<drive>:sourcesInstall.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

  • 相关阅读:
    分组排序并显示序号
    power-design--tables-export-usage
    cache implement
    get system properties
    jbpm
    JVM内存管理机制和垃圾回收机制
    java读取excel
    Java编程中“为了性能”尽量要做到的一些地方
    json串与java对象互转
    apidoc的使用
  • 原文地址:https://www.cnblogs.com/zhibincai/p/3439754.html
Copyright © 2011-2022 走看看