从Windows 10 PowerShellpipe理HyperV Server 2012R2

我无法通过Windows 10上的PowerShellpipe理运行HyperV Server 2012R2(独立的HyperV安装)的主机。虽然我可以通过Windows 10中的Hyper-Vpipe理器连接到它们,并且pipe理它们就好了,当我尝试运行PowerShell命令:

Get-VMHost <HyperVHostName> 

要么

 Get-VMReplication -ComputerName <HyperVHostName> 

Powershell返回

此Windows PowerShell会话中使用的Hyper-V模块不能用于远程pipe理服务器。 加载兼容版本的Hyper-V模块,或使用Powershell远程直接连接到远程服务器。

错误消息的文档进一步指向了Hyper-V 2012R2的基本远程pipe理文档: https ://technet.microsoft.com/en-us/library/hh846767(v=ws.11).aspx

PowerShell命令在Hyper-V Server 2016以及Windows Server 2016上都可以正常工作。由于我不想使用PowerShell远程连接通过PowerShell会话单独连接每台计算机,因此我想知道我能做些什么从Windows 10 Powershellpipe理HyperV Server 2012R2工作。 有任何想法吗?

您可以指定所需的Hyper-V cmdlet版本,例如Import-Module Hyper-V -RequiredVersion 1.1

Windows远程pipe理工具通常能够pipe理与运行该工具的位置相同的版本服务器,另外还有两个版本。 它在内部被称为“N-2”支持。
Hyper-V cmdlet不会直接执行此操作,但它们提供了可在需要时select的模块的其他版本。 Ben Armstrong的博客在这里讨论它: https : //blogs.msdn.microsoft.com/virtual_pc_guy/2015/11/16/why-are-there-two-hyper-v-powershell-modules-in-windows-10/

您可以在这里看到远程服务器pipe理工​​具(RSAT)的一般支持列表: https : //social.technet.microsoft.com/wiki/contents/articles/2202.remote-server-administration-tools-rsat-for-windows -client-和Windows的服务器,dsforum2wiki.aspx