<p>How do I connect to my Hyper-V 2016 standalone via my Windows 10 laptop?</p>
<p><em>Background: I’m setting this up as a home lab. J’ai <a href="https://www.youtube.com/watch?v=53xFqRaqSno&t=340s" rel="noopener nofollow ugc">followed</a> <a href="https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/manage/remotely-manage-hyper-v-hosts" rel="noopener nofollow ugc">a</a> <a href="https://social.technet.microsoft.com/Forums/windowsserver/en-US/fe80f0aa-0697-4657-a1da-19d36b036698/guide-to-remote-manage-hyperv-servers-and-vms-in-workgroups-or-standalone?forum=winserverhyperv" rel="noopener nofollow ugc">few</a> <a href="https://code.msdn.microsoft.com/windowsdesktop/Hyper-V-Remote-Management-26d127c6" rel="noopener nofollow ugc">guides</a>, but J’ai not yet found a guide/Youtube tutorial that seems to work for the free edition of Hyper-V 2016. This is a “hello world” for Hyper-V standalone, and I can’t find a guide that works for 2016. (Hyper-V 2012 + Windows 8 seems to have some <a href="https://code.msdn.microsoft.com/windowsdesktop/Hyper-V-Remote-Management-26d127c6" rel="noopener nofollow ugc">automated scripts</a> that solve le problème, but not for Hyper-V 2016.)</em></p>
<p><strong>Context</strong></p>
<ul>
<li>
<p>Server: <a href="https://www.microsoft.com/en-us/evalcenter/evaluate-hyper-v-server-2016" rel="noopener nofollow ugc">Hyper-V server 2016 (free, standalone)</a>, fqdn: server.local,</p>
</li>
<li>
<p>Client: Windows 10 Professional</p>
</li>
<li>
<p>Additional Notes</p>
</li>
<li>
<p>Client’s etc/hosts file contains an entry for le serveur’s fqdn</p>
</li>
<li>
<p>Neither client or server are on a workgroup or domain</p>
</li>
<li>
<p>My objective: remotely manage server using client’s Hyper-V Manager</p>
</li>
</ul>
<p><strong>The error</strong></p>
<pre><code class="lang-auto">An error occurred while attempting to connect to server "server.local". Check that the
Virtual Machine Management service is running and that you are authorized to
connect to the server.
Hyper-V encountered an error trying to access an object on computer 'server.local' because
the object was not found. The object might have been deleted. Verify that the Virtual
Machine Management service on the computer is running.
</code></pre>
<p><strong>What J’ai done on le serveur</strong></p>
<pre><code class="lang-auto"># sconfig.cmd: Enable "Configure Remote Management"
sconfig.cmd: Add Local Administrator
sconfig.cmd: Enabled Remote Desktop
Enable-PSRemoting
Enable-WSManCredSSP -Role server
sc start vmms # Is this the "missing object"?
netsh advfirewall set currentprofile state off # Let's try disabling firewall
</code></pre>
<p><strong>What J’ai done on le client</strong></p>
<pre><code class="lang-auto">Set-Item WSMan:\localhost\Client\TrustedHosts -Value "server.local"
Enable-WSManCredSSP -Role client -DelegateComputer "server.local"
Changed group policy: "Computer Configuration > Administrative Templates > System > Credentials Delegation > Allow delegating fresh credentials with NTLM-only server authentication" by doing: "Click Enable and add wsman/fqdn-of-hyper-v-host."
Disabled firewall
dcomcnfg > COM SECURITY > Access Permissions > Edit Limits > Anonymous Login > ALLOW Remote Access
cmdkey /add:YOURSERVERNAME /user:USERNAMEONTHESERVER /pass:THEPASSWORDOFTHATUSER
</code></pre>
<p><strong>How I triggered l’erreur</strong></p>
<p>On le client:</p>
<ul>
<li>
<p>Launch “Connect to Server”</p>
</li>
<li>
<p>Attempt one: “Set ‘Another computer:’ to ‘192.168.10.2’”</p>
</li>
<li>
<p>Attempt two: “Set ‘Another computer:’ to ‘server.local’”</p>
</li>
<li>
<p>Click “OK”</p>
</li>
<li>
<p>(error: "An error occurred while attempting to connect to server ‘server.local’…)</p>
</li>
</ul>
<hr>
<p><em>Source : <a href="https://www.youtube.com/watch?v=53xFqRaqSno&t=340s" rel="noopener nofollow ugc">Server Fault</a></em></p>