Connect to a Windows 2016 or Windows 10 remote host outside your domain, or with no domain
First:
winrm quickconfig
To do this:
- On the Hyper-V host to be managed, open a Windows PowerShell session as Administrator.
-
Create the necessary firewall rules for private network zones:
Enable-PSRemoting
- To allow remote access on public zones, enable firewall rules for CredSSP and WinRM:
Enable-WSManCredSSP -Role server
For details, see Enable-PSRemoting and Enable-WSManCredSSP.
Next, configure the computer you’ll use to manage the Hyper-V host.
- Open a Windows PowerShell session as Administrator.
- Run these commands:
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "fqdn-of-hyper-v-host"
Enable-WSManCredSSP -Role client -DelegateComputer "fqdn-of-hyper-v-host"
- You might also need to configure the following group policy:
- Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow delegating fresh credentials with NTLM-only server authentication
- Click Enable and add wsman/fqdn-of-hyper-v-host.
- Open Hyper-V Manager.
- In the left pane, right-click Hyper-V Manager.
- Click Connect to Server.