gpt4 book ai didi

powershell - 在进行 session 后,Get-VM 未被识别为命令

转载 作者:行者123 更新时间:2023-12-02 23:57:40 26 4
gpt4 key购买 nike

The term 'Get-VM' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (Get-VM:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException



enter image description here

执行 VM session 后,PowerShell 不执行 Get-VM 命令。

最佳答案

Get-VM 来自默认情况下未加载的模块(Hyper-V 或 VMM(?))。

您需要先使用 Import-Module 导入模块,例如:

导入模块 Hyper-V

这要求您具有安装该模块的 Windows 功能

关于powershell - 在进行 session 后,Get-VM 未被识别为命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39892268/

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