阿里云ECS主机 windows server 1909 core 添加 GUI的方法

/ 0评 / 0

xcopy e:\1909\*.* c:\1909 /S /E
c:\7-Zip\7z.exe x 1909.iso -oc:\1909 -aoa

https://www.cnblogs.com/ye123456789jun123456789/articles/4612329.html
https://bbs.csdn.net/topics/390890964
https://www.cnblogs.com/liuzhaoyzz/p/6037389.html

net use
net use e: \\tsclient\e
net use e: /del

dism /unmount-wim /MountDir:c:\mountdir /discard

https://blog.51cto.com/twilling/1414771
https://bbs.qunyingkeji.com/1350
https://blog.51cto.com/rdsrv/2150953?cid=714821
接下来设置防火墙开放文件和打印机共享的策略以及HTTPS的策略

netsh advfirewall firewall add rule name="HTTPS" dir=in action=allow protocol=TCP localport=443

netsh advfirewall firewall set rule name="文件和打印机共享(SMB-In)" new enable=yes

查询映像文件中,确定完全安装映像(例如,SERVERDATACENTER,而非SERVERDATACENTERCORE)的服务器的索引编号
mkdir c:\mountdir
dism /mount-wim /wimfile:c:\1909\sources\install.wim /index:2 /mountdir:c:\mountdir /readonly
Get-WindowsFeature "Server*"
Get-Command "*Windowsf*"
ADD-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart –Source c:\mountdir\windows\winsxs

Get-WindowsFeature –name *GUI* | ft name, installed

Add-WindowsFeature Server-Gui-Mgmt-Infra ,Server-Gui-Shell –Restart

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart

Install-WindowsFeature Server-Gui-Mgmt-Infra,Server-Gui-Shell –Restart -source c:\mountdir\windows\winsxs

dism /get-wiminfo /wimfile:e:\1909\sources\install.wim 查index索引号

1. Get-WindowsImage -ImagePath c:\sources\install.wim

2. 从上面返回的结果中查看standard或datacenter版本的imageindex数值X(假设为2),下一步用

3. 运行一下命令安装 Install-WindowsFeature -Name Server-Gui-Shell,Server-Gui-Mgmt-Infra -Source wim:c:\sources\install.wim:2

Install-WindowsFeature server-gui-mgmt-infra,server-gui-shell –source:wim:c:\sources\install.wim:2 (或者4)

shutdown -r -t 0

发表评论

网站效率:0.325秒内查询了31次数据库