遠程連接到Hyper-V HOST
爲了日常運維管理操作,使用遠程PowerShell工作。Windows 10上安裝了RSAT(遠程管理工具 )。然後安裝了Hyper-V控制檯:
在能夠遠程連接到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管理器功能,該功能可以使用備用憑據連接到Hyper-V