Skip to content

Enable Remote connection to Hyper-V non domain

About:

This is to enable the remote connection to hyper-v installed on server that is not a domain. The client will be a non-domain windows that will connect to the hyper-v installed on server.

 

 

 

Link to video working:

How To Manage Hyper-V Server 2019 From A Non-Domain Windows Client

 

 

Steps:

On server side:

  • Run as admin PowerShell ISE

Enable-PSRemoting

Enable-WSManCredSSP -Role server

 

  • 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.  
  2. The `n is new line
  3. 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.

 

  • Run as admin PowerShell ISE

winrm quickconfig

 

  • Run as admin PowerShell ISE

Set-Item WSMan:\localhost\Client\TrustedHosts -Value “HVTEST01”

 

  • Replace HVTEST01 with the host name of your Hyper-V Server host.
  •  
  • Run as admin PowerShell ISE

Enable-WSManCredSSP -Role client -DelegateComputer “HVTEST01

 

  • Replace HVTEST01 with the host name of your Hyper-V Server host.

 

  • Run as admin PowerShell ISE

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”

 

  • Replace HVTEST01 with the host name of your Hyper-V Server host.

 

 

 

 

 

On Client machine (windows 10 computer):

  • Run as admin PowerShell ISE

 Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Tools-All -All

 

  • Enter the following command in an elevated PowerShell window:

Set-NetConnectionProfile -InterfaceAlias Ethernet -NetworkCategory Private

  1.  
  2. 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.

 

 

  • Run as admin PowerShell ISE

winrm quickconfig

Enable-WSManCredSSP -Role client -DelegateComputer *