远程连接到Hyper-V HOST

为了日常运维管理操作,使用远程PowerShell工作。Windows 10上安装了RSAT(远程管理工具 )。然后安装了Hyper-V控制台:

Hyper-V 2016 配置管理系列(Part7)_服务器

在能够远程连接到Hyper-V之前,需要从服务器和客户端角度进行一些配置。在两个节点中,运行以下cmdlet:

Enable-WSManCredSSP -Role server

在您的笔记本电脑中,运行以下cmdlet(由未来的Hyper-V主机FQDN替换hyper-v-host):

Set-Item WSMan:\localhost\Client\TrustedHosts -Value "10.10.0.5"
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "hyper-v-host-01"
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "10.10.0.6"
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "hyper-v-host-02"
Enable-WSManCredSSP -Role client -DelegateComputer "10.10.0.5"
Enable-WSManCredSSP -Role client -DelegateComputer "hyper-v-host-01"
Enable-WSManCredSSP -Role client -DelegateComputer "10.10.0.6"
Enable-WSManCredSSP -Role client -DelegateComputer "hyper-v-host-02"


然后,运行gpedit.msc并配置以下策略

Hyper-V 2016 配置管理系列(Part7)_Server_02

现在,您可以利用新的Hyper-V管理器功能,该功能可以使用备用凭据连接到Hyper-V

Hyper-V 2016 配置管理系列(Part7)_Server_03