Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Virtualization / Hyper-V / How to Enable and Configure Hyper-V Remote Management

June 8, 2023

How to Enable and Configure Hyper-V Remote Management

If you installed Hyper-V on a non-GUI edition of Windows (Windows Server Core or Microsoft Hyper-V Server), you can use PowerShell cmdlets from the Hyper-V module to manage your hosts and virtual machines. To make managing virtual machines more convenient, it is recommended to use the graphical interface of the Hyper-V Manager console or the Windows Admin Center (WAC) web interface. This article shows you how to enable and configure remote Microsoft hypervisor management using the Hyper-V Manager console in a non-domain (workgroup) environment.

In this example, we’ll show you how to remotely connect to a Hyper-V host (running on Windows Server 2022/2019/2016/2012 R2 or Win 11/10/8.1) from a Windows 10 Pro x64 workstation using the Hyper-V Manager console. Make sure that the host with the Hyper-V role and your workstation are in the same WORKGROUP.

The first step is to enable remote management on the Hyper-V host. If the Hyper-V role is installed on a Server Core or Microsoft Hyper-V Server, run the utility sconfig.cmd command, then go to section 4 — Remote Management and enable remote management.

Then, open the PowerShell console, configure the WinRM service, and allow CredSSP authentication:

Enable-PSRemoting
Enable-WSManCredSSP -Role server

Enable-PSRemoting and WSManCredSSP on Hyper-V host

If you enabled WinRM by using the ‘Enable-PSRemoting’ command, this will automatically create the necessary rules in the Microsoft Defender Firewall.

If you want to check if the default WinRM port (TCP 5985) is available on the client side of the server, you can use the following command:

Test-NetConnection -ComputerName 192.168.21.30 -Port 5985

If both hosts (both the administrator workstation and the Hyper-V server) are joined to the same Active Directory domain, you must add your user account to the local Administrators or Hyper-V Administrators group on the Hyper-V host to establish a remote connection.

The next step is to configure the Windows 10 client computer from which you are going to manage your Hyper-V server.

Install the Hyper-V Manager console. To do this, run the optionalfeatures command to open the Turn Windows Features on or off console. Expand the Hyper-V node and check to install the Hyper-V GUI Management Tools.

Install Hyper-V GUI Management Tools

You can also install the Hyper-V Manager client using PowerShell:

Enable-WindowsOptionalFeature -Online –FeatureName Microsoft-Hyper-V-Management-Clients

If you try to connect to the remote Hyper-V host right now, you get an error:

CredSSP authentication is currently disabled on the local client. You must be running with administrator privileges in order to enable CredSSP.

Hyper-V: CredSSP authentication is currently disabled on the local client

To make the Hyper-V host accessible by name from the management workstation, you must add an entry to the hosts file (C:\Windows\System32\drivers\etc\hosts) on the client computer.

You can add the entry to the hosts file using PowerShell:

Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "192.168.21.30 hv19"

The hosts file should contain the following line:

192.168.21.30 hv19

add hyper-v address to hosts file

Now you need to add the name of the Hyper-V server to the trusted hosts:

Set-Item WSMan:\localhost\Client\TrustedHosts -Value "hv19"

Then save the password for the Hyper-V administrator account that you will use to connect to Windows Credential Manager:

cmdkey /add:hv19 /user:Administrator /pass:HypVpaSS22

If you don’t want to use a saved password, you can connect to Hyper-V with an interactive credential prompt:

runas /user:hv19\Administrator /netonly "mmc virtmgmt.msc"

Check that your network connections in Windows 10 have a Public network profile assigned:

Get-NetConnectionProfile|select InterfaceAlias,NetworkCategory

Use Private connection profile for Hyper-V remote management

If the command returns the connection type (location) as Public, change it to Private:

Set-NetConnectionProfile -InterfaceAlias "EthernetLAN2" -NetworkCategory Private

Enable CredSSP authentication on the client and specify the server address you trust to delegate your credentials:

Enable-WSManCredSSP -Role client -DelegateComputer "hv19"

Confirm the action: y -> Enter.

Enable-WSManCredSSP on Hyper-V client machine

This will also change the settings of the local Allow delegating fresh credentials policy.

Now enable NTLM authentication on the non-domain computer:

  1. Open the local Group Policy Editor: gpedit.msc ;
  2. Go to Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Credentials Delegation;
  3. Enable the item Allow Delegating Fresh Credentials with NTLM-only Server Authentication;
  4. Click Show and add two values for the name of your Hyper-V server (in our example, it’s hv19): wsman/hv19 and wsman/hv19.local; Enable GPO option: Allow Delegating Fresh Credentials with NTLM-only Server Authentication
  5. Close the GPO editor and update your computer’s Group Policy settings: gpupdate /force

Now you should be able to connect to the remote host with the Hyper-V role. Open the Hyper-V Manager console (virtmgmt.msc) and click Connect to Server. Enter the name of the remote Hyper-V host:

Hyper-V Manager - connect to remote host in workgroup

If you have done everything correctly, the console should connect to the Hyper-V server and display a list of registered virtual machines.

Now you can manage Hyper-V Server settings, create/enable/disable, import/export Hyper-V virtual machines from the graphical console.

Configure Hyper-V using Manager GUI

4 comments
14
Facebook Twitter Google + Pinterest
Hyper-VWindows 10Windows Server 2019
previous post
How to Protect Windows Against Viruses and Ransomware with Built-in Tools
next post
How to Allow Non-Admin User to Start/Stop Service in Windows

Related Reading

How to Install and Configure Free Hyper-V Server...

March 16, 2024

How to Assign (Passthrough) a Physical GPU to...

June 11, 2024

Poor Network Performance on Hyper-V VMs in Windows...

February 20, 2023

USB Device Passthrough (Redirect) to Hyper-V Virtual Machine

March 15, 2024

Enable Hyper-V on Windows 10/11 Pro and Home...

August 12, 2024

Windows Cannot Find the Microsoft Software License Terms

April 19, 2023

Configure SR-IOV for Hyper-V Virtual Machines on Windows...

March 29, 2022

Import, Export and Clone Virtual Machines in Hyper-V

January 19, 2022

4 comments

Anthony Lee November 17, 2023 - 9:04 pm

Hello,

I want to express my appreciation to you about this Hyper-V Remote Management article. I follow your instructions and am able to connect Win 11 to Hyper-V 2019 flawless. I feel lucky today that I run into this article.

Thanks,
Anthony

Reply
Pedro March 2, 2024 - 9:21 am

You should update the article where it says to add a trusted host, what it is really doing is overriding all the trusted hosts on the server. This is not good. It’s safer to use the command with “concatenate” switch, so that it doesn’t delete the existing list.

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

Reply
adsada June 29, 2024 - 12:10 pm

doesnt work for domain authenticatefd

Reply
^Gecko^ December 1, 2024 - 7:38 am

omg why do you have to just through so many hoops to get this to work?

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Hyper-V Virtual Machine Stuck in Stopping/Starting State
  • How to Install and Configure Free Hyper-V Server 2019/2016
  • Poor Network Performance on Hyper-V VMs in Windows Server 2019
  • How to Install Windows 11 on a Hyper-V Virtual Machine
  • Windows Cannot Find the Microsoft Software License Terms
  • How to Assign (Passthrough) a Physical GPU to a Hyper-V Virtual Machine
  • Enable Hyper-V on Windows 10/11 Pro and Home Editions
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top