There's more...

Run the following command on the Hyper-V host:

winrm id 

This should produce an output similar to the following output:

IdentifyResponse
ProtocolVersion = http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor = Microsoft Corporation
ProductVersion = OS: 10.0.14393 SP: 0.0 Stack: 3.0
SecurityProfiles
SecurityProfileName = http://schemas.dmtf.org/wbem/wsman/1/wsman/secprofile/http/spnego-kerberos

If the result shows an error, run the following command for a quick configuration of WinRM:

winrm qc 

If prompted, answer Yes. You will receive a response like the following:

WinRM already is set up to receive requests on this machine. 
WinRM is not set up to allow remote access to this machine for management. 
The following changes must be made: 
Enable the WinRM firewall exception
Make these changes [y/n]? WinRM has been updated for remote management. WinRM firewall exception enabled. WinRM can now be tested again by typing 'winrm id' as before

Now check the listener:

winrm enum winrm/config/listener 

Run the following command on the VMM management server:

winrm id -r:http://HyperVHost.yourdomain.local:5985 -u:YOURDOMAIN\AdminUser 

The result will be similar to the following:

IdentifyResponse
ProtocolVersion = http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd
ProductVendor = Microsoft Corporation
ProductVersion = OS: 10.0.14393 SP: 0.0 Stack: 3.0

Otherwise you will receive the following error:

Error number: -2144108526 0x80338012 
The Client cannot connect to the destination specified in the request 

This could indicate communication issues, so check your network, host firewall, and connectivity.

Most WinRM-related events appear in the system or application event logs. The Service Control Manager often contains the error, as the WinRM service has terminated or restarted for some reason.

To avoid this scenario, conduct the following checks:

  • Make sure you installed all of the prerequisites
  • Check the firewall rules and make sure the ports are configured correctly
  • Open the command prompt (Run as Administrator) and type the following command:
      winrm qc -q 
      winrm set winrm/config/service/auth @{CredSSP="True"} 
      winrm set winrm/config/winrs @{AllowRemoteShellAccess="True"} 
      winrm set winrm/config/winrs @{MaxMemoryPerShellMB="2048"}