It’s not as easy as I thought, as there are quite a few pieces that need to be taken care of before you can happily manage Hyper-V host remotely from any computer, even one outside a managed domain.
If you want to set up to manage your office Hyper-V host from your home computer that’s not part of your office network domain at all, here are the steps you can follow:
On the Hyper-V host
1. Enable PowerShell Remoting and configure the necessary Firewall rules
Enable-PSRemoting
2. Set up the Firewall rule to allow remote access from public networks on Windows platforms.
Enable-PSRemoting -SkipNetworkProfileCheck -Force Set-NetFirewallRule -Name "WinRM-HTTP-In-TCP-Public" -RemoteAddress Any Enable-WSManCredSSP -Role Server
Do a TCP port scan to make sure the Remote Management port is accessible.
Test-NetConnection -ComputerName target_name -Port 5985
On Windows 10 machine
1. Open PowerShell as Administrator window and run the following two cmdlets.
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "FQDN-Hyper-V-Host" Enable-WSManCredSSP -Role Client -DelegateComputer "FQDN-Hyper-V-Host"
2. Open Group Policy Editor and configure the following group policy
Computer Configuration > Administrative Template > System > Credentials Delegation, and enable Allow delegating fresh credentials with NTLM-only server authentication and add wsman/FQDN-Hyper-V-Host.
Test it out
Open Hyper-V Manager on Windows 10, right-click “Hyper-V Manager” and choose Connect to Server…
Type in the Hyper-V hostname, Set User with the proper credential, and click OK.
Hi there,
I have tried your steps and finally I can add the remote server in my hyper-v manager.
But now it says: “RPC Server Unavailable. Unable to establish communication between $Host and $Client”
I have disabled the firewall on both sides but it is not working, do you have any idea?
It sounds like the RPC service is not running on the server end?
Checked, and it says: The requested service has already been started