<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://sufan.maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://sufan.maytide.net/read.php/1824.htm</link>
<title><![CDATA[工作组环境下使用 Hyper-V 管理器远程管理 Hyper-V 主机]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[Virtualization]]></category>
<pubDate>Thu, 02 Mar 2017 08:14:00 +0000</pubDate> 
<guid>https://sufan.maytide.net/read.php/1824.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/Windows_Server_2016_logo_banner.png"><img title="Windows_Server_2016_logo_banner" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="Windows_Server_2016_logo_banner" src="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/Windows_Server_2016_logo_banner_thumb.png" width="500" height="169"></a></p> <p><font color="#fd3f0d" size="4"><strong>工作组环境下使用 Hyper-V 管理器远程管理 Hyper-V 主机</strong></font></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 参考本文将能协助你轻松地在工作组环境下通过Windows 10 的 Hyper-V 管理器去远程管理 Hyper-V 主机。在之前的系统版本上，我们需要依赖一系列的配置操作，或使用现成的脚本才能才能实现，否则就需要确保客户端和服务器都加入到域环境。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在 Windows Server 2016 环境中，之前的配置方法和脚本都不再有效。还好微软分享了一组系统命令和简单的操作步骤，就能够实现我们的需求。</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 首先，在 Windows 10 设备上通过“程序和功能”，启用 Hyper-V 管理器（Hyper-V Management Tools），由于 <a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 的客户端是英文版，所以具体如下图所示：</p> <p><a href="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/Hyper-V_Management_Tools.png"><img title="Hyper-V_Management_Tools" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="Hyper-V_Management_Tools" src="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/Hyper-V_Management_Tools_thumb.png" width="524" height="568"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 然后，在 Hyper-V 主机上执行配置命令行，以便接收 Windows PowerShell 远程命令发送的 WS-Management 指令，同时还要为 WS-Management 配置允许 CredSSP 身份验证。为此，我们需要执行两条命令：</p> <p>1、 <a href="https://msdn.microsoft.com/powershell/reference/5.1/microsoft.powershell.core/Enable-PSRemoting" target="_blank">Enable-PSRemoting</a></p> <p>2、 <a href="https://msdn.microsoft.com/powershell/reference/5.1/microsoft.wsman.management/Enable-WSManCredSSP" target="_blank">Enable-WSManCredSSP</a> -role server</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 具体的执行效果可参考下图：</p> <p><a href="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/enable-psremoting.png"><img title="enable-psremoting" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="enable-psremoting" src="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/enable-psremoting_thumb.png" width="634" height="328"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 至此，Hyper-V 主机端的配置就算结束了，是不是非常简单便捷！接下来开始配置 Windows 10 客户端，同样需要先使用命令行进行配置。</p> <p>1、<strong>Set-Item WSMan:\localhost\Client\TrusteHosts -Value</strong> "<em><font color="#a5a5a5">Hyper-V Host FQDN</font></em>"</p> <p>2、<strong>Enable-WSManCredSSP -Role client -DelegateComputer</strong> "<em><font color="#a5a5a5">Hyper-V Host FQDN</font></em>"</p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 具体操作效果如下图所示：</p> <p><a href="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_client.png"><img title="con_client" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="con_client" src="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_client_thumb.png" width="577" height="345"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 现在，执行 gpedit.msc 启动组策略管理器，定位至 计算机配置-管理模板-系统-凭据分配，启用“<strong>允许分配新的凭据用于仅NTLM服务器身份验证</strong>”，同时将“<strong>wsman/</strong><em><font color="#a5a5a5">Hyper-V Host FQDN</font></em>” 添加到服务器列表中，如下图所示：</p> <p><a href="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_client_gpedit1.png"><img title="con_client_gpedit1" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="con_client_gpedit1" src="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_client_gpedit1_thumb.png" width="492" height="345"></a></p> <p><a href="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_client_gpedit2.png"><img title="con_client_gpedit2" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="con_client_gpedit2" src="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_client_gpedit2_thumb.png" width="369" height="345"></a></p> <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 至此，配置过程告一段落，无需重新启动客户端和服务器，直接打开 Windows 10 设备上的 Hyper-V 管理器，添加计算机，填写“Hyper-V Host FQDN”，即 Hyper-V 主机的完整计算机名称，根据需要填写用于认证账号和密码，便可以连接到远程 Hyper-V 主机上进行愉快的操控。</p> <p><a href="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_Hyper-v_mgr1.png"><img title="con_Hyper-v_mgr1" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="con_Hyper-v_mgr1" src="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_Hyper-v_mgr1_thumb.png" width="442" height="345"></a></p> <p><a href="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_Hyper-v_mgr2.png"><img title="con_Hyper-v_mgr2" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px" border="0" alt="con_Hyper-v_mgr2" src="http://goxia.maytide.net/ftpup/2017/ed310f9bcddf_B728/con_Hyper-v_mgr2_thumb.png" width="437" height="345"></a></p> <p>参考资料：<a title="https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-v/manage/remotely-manage-hyper-v-hosts?f=255&amp;MSPPError=-2147217396" href="https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-v/manage/remotely-manage-hyper-v-hosts?f=255&amp;MSPPError=-2147217396">https://technet.microsoft.com/en-us/windows-server-docs/compute/hyper-v/manage/remotely-manage-hyper-v-hosts?f=255&amp;MSPPError=-2147217396</a></p>
]]>
</description>
</item><item>
<link>https://sufan.maytide.net/read.php/1824.htm#blogcomment5213</link>
<title><![CDATA[[评论] 工作组环境下使用 Hyper-V 管理器远程管理 Hyper-V 主机]]></title> 
<author>aclatter &lt;969860108@qq.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 09 Nov 2018 08:23:42 +0000</pubDate> 
<guid>https://sufan.maytide.net/read.php/1824.htm#blogcomment5213</guid> 
<description>
<![CDATA[ 
	Through the hyper-v manager that comes with win10, to manage the hyper-v 2016 server prompt operation failed, please see the detailed description!<br/>通过win10  自带的 hyper-v 管理器，去管理 hyper-v 2016 server提示操作失败 ，请看详细将描述！<br/>配置环境为：<br/>1、非域环境，默认工作组，跨网段（网段已互通“实现网段地址互ping”）<br/>     Non-domain environment, default working group, cross-network segment (the network segment has been interconnected to achieve mutual ping of network segment addresses)<br/>2、客户端：win10（Professional）<br/>     The client: win10 (Professional)<br/>3、服务器：hyper-v 2016 server<br/>     server: hyper-v 2016 server<br/>4、服务器端已通过powershell输入：<br/>     The server side has been entered via powershell:<br/><br/>     Enable-PSRemoting<br/>     Enable-WSManCredSSP -role server<br/>5、客户端输入命令：<br/>     The client has entered the command:<br/>     ComputerName set-item wsman:localhost\client\trustedhosts -value  administratro<br/>     Set-Item WSMan:\localhost\Client\TrusteHosts -Value &quot;server hostname&quot;（此环节报错：Set-Item : 无法使用此命令，因为路径不存在。请核实是否存在该路径后再运行此命令。This link gives an error: Set-Item : This command cannot be used because the path does not exist. Please verify that the path exists before running this command.）<br/>     Enable-WSManCredSSP -Role client -DelegateComputer &quot;server hostname&quot;<br/>6、使用管理器尝试连接提示报错信息<br/>     Use the manager to try to connect the prompt error message<br/>请问各位大佬，我该怎么去解决此问题！<br/>Excuse me, how can I solve this problem!
]]>
</description>
</item><item>
<link>https://sufan.maytide.net/read.php/1824.htm#blogcomment5216</link>
<title><![CDATA[[评论] 工作组环境下使用 Hyper-V 管理器远程管理 Hyper-V 主机]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 19 Nov 2018 05:16:58 +0000</pubDate> 
<guid>https://sufan.maytide.net/read.php/1824.htm#blogcomment5216</guid> 
<description>
<![CDATA[ 
	To:aclatter, 从第五步报错看，是路径有误，请get-item 路径查看是否正常。
]]>
</description>
</item><item>
<link>https://sufan.maytide.net/read.php/1824.htm#blogcomment5222</link>
<title><![CDATA[[评论] 工作组环境下使用 Hyper-V 管理器远程管理 Hyper-V 主机]]></title> 
<author>Oyney &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 25 Nov 2019 08:18:34 +0000</pubDate> 
<guid>https://sufan.maytide.net/read.php/1824.htm#blogcomment5222</guid> 
<description>
<![CDATA[ 
	是:&nbsp;&nbsp;Client\TrustedHosts而不是：Client\TrusteHosts
]]>
</description>
</item>
</channel>
</rss>