三三世界-百宝箱

文章 分类 标签
130 9 247

公告

暂无站点公告

在Windows Server2012中用命令行PowerShell安装GUI图形桌面

三三 2022-05-11 1873 0条评论 Windows使用 windows server安装GUI

首页 / 正文

一般来说windows server 2012有四版本:
Standard标准版,Standard标准版带GUI
Datacenter是数据中心版,Datacenter数据中心版带GUI。

有时我们默认选择了服务器核心安装,发现界面就一个纯净的命令行模式。如果我们需要图形界面的模式时,大多数可能会直接重装。

我们这里介绍如何直接通过PowerShell升级安装GUI图形模式。

工具/原料
windows server 2012 镜像文件

方法/步骤

第一步,进入PowerShell。在命令行提示输入符处,直接输入“PowerShell”:

PowerShell

第二步, 然后挂载windows server 2012 镜像文件到一个盘上。

注意:我是把windows server 2012 镜像文件解压到U盘根目录中,然后把U盘插到电脑上;

第三步:我的这里显示为 D盘。进入到sources中输入: (如图)

dism  /get-wiminfo /wimfile:d:\sources\install.wim

可以看到图像索引的1和3分别是服务器核心安装映像,标准和数据中心,图像索引2和4分别是GUI安装标准和数据中心

(注意:如果你不知道自己挂载的哪个盘,你可以一个个尝试。找到含镜像文件的盘)

**第四步:然后继续输入(这里以数据中心版为例选择4,如果标准版选2):

Install-WindowsFeature server-gui-mgmt-infra,server-gui-shell –source:wim:d:sourcesinstall.vim:4

然后可以看到安装进度显示,耐心等待;

第五步:进度走完后,会提示你重启已完成GUI图形模式的安装;

你可以输入命令,重启服务器:

shutdown -r -t 0

第六步:耐心等待。直到成功。

备注:如果机器是联网状态也可以尝试如下命令直接进行安装:

dism /online /enable-feature /all /featurename:servercore-fullserver /featurename:server-gui-shell /featurename:server-gui-mgmt

评论(0)

当前没有评论,还不快来留下第一个脚印吧


Copyright 2021 三三世界-百宝箱. All Rights Reserved.

最新评论

  • 三三

    @Doug Shume it's ok for me , you can post here.

  • refugiaguenther

    Saved as a favorite, I like your website!

  • josefa

    If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.

  • Penzu

    Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!

  • Yupoo Fendi

    Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.

  • Doug Shume

    Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.

  • SuperWind

    zh.us.to 有效
    kms.03k.org 有效
    kms.chinancce.com
    kms.shuax.com 有效
    kms.dwhd.org 有效
    kms.luody.info 有效
    kms.digiboy.ir 有效
    kms.lotro.cc 有效
    www.zgbs.cc 有效
    cy2617.jios.org 有效

  • 三三

    @         权限问题,试试sudo 再加命令。

  •         

    你好提示Permission denied 怎么办啊

日历

2024年05月

   1234
567891011
12131415161718
19202122232425
262728293031 

文章目录

上一张 下一张