Hyper-V Server 2016 or 2019 Host
All steps in this section are to be done on your Hyper-V Server host server. In this example, I am starting from a fresh install of Hyper-V Server 2016 that is fully patched and up-to-date.
- Enable PSRemoting:
- Enter the following command in an elevated PowerShell window:
Enable-PSRemoting
- Enter the following command in an elevated PowerShell window:
- Allow remote access on public zones and enable firewall rules for CredSSP and WinRM:
Windows 10 PC
All steps in this section are to be done on your Windows 10 PC. At the time of this article’s creation, I used a fresh installed of Windows 10 Pro 1803 fully patched and up to date as of the end of July 2018. I know, scary! (but working)
- Install the Hyper-V Management Tools:
- Set the network connection category to private:
- Enter the following command in an elevated PowerShell window:
Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory Private- You may need to change “Ethernet” (InterfaceAlias) to match the name of your network connection(s).
- You can use Get-NetConnectionProfile to list your connections and their categories.
- Enter the following command in an elevated PowerShell window:
- Add the Hyper-V Server host to the local “hosts” file:
- Enter the following command, which appends the host name of the Hyper-V host and it’s IP address to the local hosts file:
Add-Content -Path C:\Windows\System32\drivers\etc\hosts -Value “`n172.30.32.151`tHVTEST01”- The `n is new line
- The `t is horizontal tab character
- Replace HVTEST01 and 172.30.32.151 with the host name and IP address of your Hyper-V Server host.
- Enter the following command, which appends the host name of the Hyper-V host and it’s IP address to the local hosts file:
- Configure Remote Management Service:
- Add the Hyper-V Server host to the trusted hosts of the Win10 PC:
- Allow the Win10 PC credentials to be delegated to the Hyper-V Server host:
- Allow delegating fresh credentials with NTLM-only server authentication:
- Enter the following commands in an elevated PowerShell window: New-Item -Path “HKLM:\SOFTWARE\Policies\Microsoft\Windows\” -Name ‘CredentialsDelegation’ New-ItemProperty -Path “HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation\” -Name ‘AllowFreshCredentialsWhenNTLMOnly’ -PropertyType DWord -Value “00000001” New-ItemProperty -Path “HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation\” -Name ‘ConcatenateDefaults_AllowFreshNTLMOnly’ -PropertyType DWord -Value “00000001” New-Item -Path “HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation\” -Name ‘AllowFreshCredentialsWhenNTLMOnly’ New-ItemProperty -Path “HKLM:\SOFTWARE\Policies\Microsoft\Windows\CredentialsDelegation\AllowFreshCredentialsWhenNTLMOnly\” -Name ‘1’ -Value “wsman/HVTEST01”
- Change “HVTEST01” to match the name of your Hyper-V host in either of the above steps.
Open up Hyper-V Manager:
- Right-Click on “Hyper-V Manager”, and select “Connect to server…”.
- Select “Another computer” and type the name of your Hyper-V Server host.
- Check “Connect as another user”, then use the local admin account of the Hyper-V Host. Check “Remember me”. Use HOSTNAME\Administrator