加入收藏 | 设为首页 | 会员中心 | 我要投稿 东莞站长网 (https://www.0769zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

hyper-v-server-2012-r2 – Windows 10更新后无法连接Hyper-V Se

发布时间:2021-01-13 08:09:33 所属栏目:Windows 来源:网络整理
导读:我有一个域加入了HyperV Server Core 2012 R2计算机,并且启用了域加入服务并允许从该计算机进行访问.默认情况下,公共配置文件的WinRM防火墙例外限制了对从 Windows Pro 8.1到Windows 10 Pro就地升级的工作站内的远程计算机的访问.在更新之前,我能够使用Hyper

我有一个域加入了HyperV Server Core 2012 R2计算机,并且启用了域加入服务并允许从该计算机进行访问.默认情况下,公共配置文件的WinRM防火墙例外限制了对从 Windows Pro 8.1到Windows 10 Pro就地升级的工作站内的远程计算机的访问.在更新之前,我能够使用Hyper-V Manager连接到2012 R2服务器来管理该计算机上的VM.更新后,我收到此错误:

[Window Title]
Hyper-V Manager

[Main Instruction]
An error occurred while attempting to connect to server "HYPERV01". Check that the Virtual Machine Management service is running and that you are authorized to connect to the server.

[Content]
The operation on computer 'HYPERV01' failed: WinRM cannot complete the operation. Verify that the specified computer name is valid,that the computer is accessible over the network,and that a firewall exception for the WinRM the same local subnet.

工作站和服务器位于同一子网上,我检查了防火墙中是否启用了远程管理和其他一些Hyper-V异常.我该怎么改正?

编辑:我不确定Win10更新是否与它有任何关系.通过在hyperv服务器上输入第一个命令,我可以通过Windows 10中的Hyper-V管理器再次连接而无需其他更改(甚至不需要winrm set命令).因此,可能是服务器上的最新Windows Update重置了防火墙规则,因为enter-psssession hyperv01也失败了,我后来发现.

您需要启用WinRM才能连接到Hyper-V服务器.为此,您需要:

打开“开始”菜单
单击所有程序,然后单击附件
右键单击命令提示符,然后选择以管理员身份运行
输入winrm quickconfig并按Enter键.然后,您需要对几个提示说“是”(是)

输入:winrm set winrm / config / client’@ {TrustedHosts =“RemoteComputerName”}’然后按Enter键.用您的Hyper-V服务器的名称或IP地址替换“RemoteComputerName”.

在Windows 10升级后,您必须再次重新授权Hyper-V服务器.
就是这样……解决了.

命令行条目缺少@ {TrustedHosts =“RemoteComputerName”}周围的单引号.它需要是’@ {TrustedHosts =“RemoteComputerName”}’

(编辑:东莞站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!