problems configure connecting remote to hyper v server

Florian Schuster 20 Reputation points
2023-01-30T14:30:27.2966667+00:00
Hey Guys,

iam a trainee in IT in my second year and for the next half year of my traineship. So next half year i try to learn as much as possible about windows client/server. 

I set up a BareMetal-Hyper-Visor with Hyper V 2019 and now wanna connect to it remotley with my Windows 10 Client. 

I followed instructions here: 

Both Computers are in the same Workgroup called hyper and i enabled on both machines ping. Both machines can ping each other. From the network side everything looks ok. 

The Computers are still not  in a domain, because i want to virtualize the domaincontroller on the Hyper Visor. 

But i struggle get remote connection done. I followed the instructions: 

Connect to a Windows Server 2016 or Windows 10 remote host outside your domain, or with no domain Remotely manage Hyper-V hosts | Microsoft Learn

Step: 2 Set-Item WSMan:\localhost\Client\TrustedHosts -Value "fqdn-of-hyper-v-host"


I Entered this into Powershell:

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

What is "fqdn-of-hyper-v-host"? Is this the name of the hyper V host?

The Output was:

Set-Item : The client cannot connect to the destination specified in the request. Verify 

that the service on the destination is running and is accepting requests. Consult the 

logs and documentation for the WS-Management service running on the destination, most 

commonly IIS or WinRM. If the destination is the WinRM service, run the following 

command on the destination to analyze and configure the WinRM service: "winrm 

quickconfig". 

At line:1 char:1 

+ Set-Item WSMan:\localhost\Client\TrustedHosts -Value "fqdn-of-hyper-v ... 

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

    + CategoryInfo          : NotSpecified: (:) [Set-Item], InvalidOperationException 

    + FullyQualifiedErrorId : System.InvalidOperationException,Microsoft.PowerShell.Comm 

   ands.SetItemCommand

I already tried installing installing WinrM on the hyper V host but still the same Problem. 

Can someone help me with this?
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,561 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,081 questions
Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,530 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dave Patrick 426K Reputation points MVP
    2023-01-30T15:41:01.85+00:00

2 additional answers

Sort by: Most helpful
  1. Dave Patrick 426K Reputation points MVP
    2023-02-06T20:20:29.3466667+00:00

    Some ideas here.

    https://stackoverflow.com/questions/65108982/powershell-the-client-cannot-connect-to-the-destination-specified-in-the-reques

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    1 person found this answer helpful.

  2. Florian Schuster 20 Reputation points
    2023-02-06T13:49:05.9533333+00:00

    deleted that post found a solution for it

    0 comments No comments