Remotely Managing Hyper-V Server in a Workgroup or non-domain

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.

  1. Enable PSRemoting:
    1. Enter the following command in an elevated PowerShell window:
      Enable-PSRemoting
  2. Allow remote access on public zones and enable firewall rules for CredSSP and WinRM:
    1. Enter the following command in an elevated PowerShell window, then enter Y when prompted:
      Enable-WSManCredSSP -Role server

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)

  1. Install the Hyper-V Management Tools:
    1. Open up an elevated PowerShell window (Run as Administrator)
    2. Enter the following command, which installs the Hyper-V Management tools, then enter Y to reboot:
      Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All -All
  2. Set the network connection category to private:
    1. Enter the following command in an elevated PowerShell window:
      Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory Private
      1. You may need to change “Ethernet” (InterfaceAlias) to match the name of your network connection(s).
      2. You can use Get-NetConnectionProfile to list your connections and their categories.
  3. Add the Hyper-V Server host to the local “hosts” file:
    1. 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”
      1. The `n is new line
      2. The `t is horizontal tab character
      3. Replace HVTEST01 and 172.30.32.151 with the host name and IP address of your Hyper-V Server host.
  4. Configure Remote Management Service:
    1. Enter the following in an elevated PowerShell window, and enter Y when prompted:
      winrm quickconfig
  5. Add the Hyper-V Server host to the trusted hosts of the Win10 PC:
    1. Enter the following command in an elevated PowerShell window, and enter Y when prompted:
      Set-Item WSMan:\localhost\Client\TrustedHosts -Value “HVTEST01”
  6. Allow the Win10 PC credentials to be delegated to the Hyper-V Server host:
    1. Enter the following command in an elevated PowerShell window, enter Y when prompted:
      Enable-WSManCredSSP -Role client -DelegateComputer “HVTEST01”
  7. Allow delegating fresh credentials with NTLM-only server authentication:
    1. 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”
    2. Change “HVTEST01” to match the name of your Hyper-V host in either of the above steps.

Open up Hyper-V Manager:

  1. Right-Click on “Hyper-V Manager”, and select “Connect to server…”.
  2. Select “Another computer” and type the name of your Hyper-V Server host.
  3. Check “Connect as another user”, then use the local admin account of the Hyper-V Host. Check “Remember me”. Use HOSTNAME\Administrator


Leave a Reply 0

Your email address will not be published. Required fields are marked *