简体   繁体   English

Windows Server 2008 R2中无法通过Powershell 4导入模块Hyper-V

[英]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.

相关问题 无法连接Hyper-V管理器(在Windows Server 2012 R2上)和Hyper-V Server 2012 R2 - Can't connect Hyper-V Manager (on Windows Server 2012 R2) and Hyper-V Server 2012 R2 在Windows Server 2008中:Powershell无法导入模块ActiveDirectory - In Windows Server 2008 : Powershell can't import-module ActiveDirectory 如何使用 Puppet 因子在 Windows 2008 R2 中导入模块? - How to Import-Module in Windows 2008 R2 using Puppet facter? 使用Powershell Windows Server 2008 R2将用户导入本地 - Import users to local with powershell windows server 2008 r2 Windows PowerShell导入模块 - Windows PowerShell Import-module 是否应该在 Windows 7 机器上安装用于 powershell 的活动目录模块来导入它,还是可以从 Windows 2008 R2 DC 远程导入? - Should active directory module for powershell installed on a windows 7 machine to import it or can it be remotely imported from a Windows 2008 R2 DC? 获取Hyper-V群集Windows 2012 R2中的所有VM及其磁盘大小 - Grab all VMs in Hyper-V cluster Windows 2012 R2 and their disks sizes 尝试通过WMI通过Powershell调用V2名称空间来创建Hyper-V 2012 R2 * Generation 2 * VM - Trying to create a Hyper-V 2012 R2 *Generation 2* VM via WMI calls to the the V2 namepace via Powershell 查询VM的2008r2 Hyper-V及其磁盘信息 - Query 2008r2 Hyper-V for VMs and their disk info Windows Server 2019 从 IIS (c# mvc) 调用提升的 powershell Hyper-V 脚本 - Windows Server 2019 calling elevated powershell Hyper-V scripts from IIS (c# mvc)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM