[英]can't import-module Hyper-V by powershell 4 in windows server 2008 R2
I tried to use following cmd at Powershell 4 in Windows Server 2008 R2. 我尝试在Windows Server 2008 R2中的Powershell 4上使用以下cmd。 (Hyper-V has been running normally)
(Hyper-V一直正常运行)
import-module Hyper-V
导入模块Hyper-V
get-VM
得到-VM
--> they are not recognized as the name of a cmdlet. ->无法识别为cmdlet的名称。
get-VM -servername "full server name" (from Windows 8)
get-VM -servername“完整服务器名称”(来自Windows 8)
--> "Hyper-V" module is not installed in the remote server. ->远程服务器中未安装“ Hyper-V”模块。
Please shed your light on how I can control Hyper-V using PS 4. Thank you for your answers in advance. 请阐明我如何使用PS 4控制Hyper-V。谢谢您的提前回答。
I am not sure about this one but some modules are tied to Operating System. 我不确定这一点,但有些模块与操作系统相关。 The link to Hyper-V Module suggests that it is available on Windows 2012, which would explain why you do not have it on the older Server OS: http://technet.microsoft.com/en-us/library/hh846767.aspx
指向Hyper-V模块的链接表明它在Windows 2012上可用,这可以解释为什么您在较旧的服务器操作系统上没有它: http : //technet.microsoft.com/zh-cn/library/hh846767.aspx
Just installing newer version of PowerShell is not enough to get newer modules released with that version, you also need to be on the minimum OS they were released on. 仅安装PowerShell的较新版本不足以使该模块发布较新的模块,您还需要使用其所发行的最低操作系统。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.