与Windows Server 2012 Core的远程桌面连接 [英] Remote desktop connection to windows server 2012 core
问题描述
大家好,
如何使用远程桌面连接在azure上连接到Windows Server 2012核心虚拟机?我能够使用远程桌面连接到完整的gui服务器,但是切换到核心后(通过删除图形管理工具和基础架构) +使用服务器管理器的服务器图形外壳程序)无法使用远程桌面连接到vm,这是为什么?
How do you connect to windows server 2012 core virtual machine on azure using remote desktop connection ? I was able to connect to the full gui server using remote desktop, but after switching to core (by removing graphical management tools and infrastructure + server graphical shell using the server manager) am not able to connect to the vm using remote desktop, why is that ?
推荐答案
Rdp在核心操作系统上被禁用,但是要启用它,您可以在Windows文件夹的System32子文件夹中使用SCregEdit.wsf脚本.只需键入以下命令:
Rdp is disabled on a core o.s but to enable it you can use the SCregEdit.wsf script in the System32 subfolder of your Windows folder. Simply type the following commands:
启用远程桌面(CMD)
Enable remote desktop (CMD)
cscript %windir%system32scregedit.wsf /ar 0
在Windows命令提示符下查看远程桌面设置
View remote desktop settings in the windows command prompt
cscript %windir%system32scregedit.wsf /ar /v
0 =已启用 1 =禁用
0=enabled 1 = disabled
您可能还需要配置防火墙以允许rdp.
You may also need to configure the firewall to allow rdp.
获取防火墙配置文件的状态.
To get the status of the firewall profiles.
Get-NetFirewallProfiles
防火墙规则的状态
Get-NetFirewallRule
启用防火墙规则
Enable-NetFirewallRule -DisplayGroup "Remote Service Management"
Enable-NetFirewallRule -DisplayGroup "Remote Event Log Management"
Enable-NetFirewallRule -DisplayGroup "Remote Firewall Management"
这是一个不错的博客,其中包括Sconfig.exe,这是一个基于菜单的实用程序,用于上述配置. https://www.giantstride.gr/configuring-windows-core/
This here is a good blog on this including Sconfig.exe, a menu based utility for configuration as above. https://www.giantstride.gr/configuring-windows-core/
如果此答案有帮助,请单击标记为答案"或向上投票.要提供有关您的论坛体验的其他反馈,请单击 此处
If this answer was helpful, click "Mark as Answer" or Up-Vote. To provide additional feedback on your forum experience, click Here
这篇关于与Windows Server 2012 Core的远程桌面连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!