gpt4 book ai didi

powershell - Convert-vhd 或 get-vhd 引发 WMI 错误 - Hyper-V 管理工具无法访问计算机上预期的 WMI 类

转载 作者:行者123 更新时间:2023-12-03 07:48:43 24 4
gpt4 key购买 nike

我尝试使用 convert-vhd 命令将 VHD 转换为 VHDX,但出现以下错误:

The Hyper-V Management Tools could not access an expected WMI class on computer 'WINHIF3'. This may indicate that the Hyper-V Platform is not installed on the computer or that the version of the Hyper-V Platform is incompatible with these management tools.

如果使用 get-vhd 命令,我会收到相同的错误。

但是,如果我使用 HyperV Manager GUI,我可以将磁盘转换为 VHDX。

在 Server 2016 上运行并安装 RSAT HyperV 管理工具和 powershell 模块

有什么想法吗?

或者是否有其他方法可以通过命令行将 VHD 转换为 VHDX?

最佳答案

我也遇到了同样的问题。结果在“打开或关闭 Windows 功能”中我只启用了“Hyper-V 管理工具”。一旦我添加了“Hyper-V Platform”(需要重新启动),它就可以工作了。

enter image description here

关于powershell - Convert-vhd 或 get-vhd 引发 WMI 错误 - Hyper-V 管理工具无法访问计算机上预期的 WMI 类,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75564941/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com