【问题标题】:Microsoft.SystemCenter.VirtualMachineManager is not installed on this machine此计算机上未安装 Microsoft.SystemCenter.VirtualMachineManager
【发布时间】:2013-07-04 10:24:57
【问题描述】:

我想从 powershell 使用 get-vm 命令。

$my_vm = get-vm -Name MY_VM_NAME

有错误提示

“get-vm”一词未被识别为 cmdlet、函数的名称, 脚本文件或可运行的程序。检查名称的拼写,或 如果包含路径,请验证路径是否正确并尝试 再次。

发现需要安装Microsoft.SystemCenter.VirtualMachineManager (how to run get-vm command on windows powershell)

执行那个:

PS C:\Windows\system32> 添加-PSSnapin -Name Microsoft.SystemCenter.VirtualMachineManager

Add-PSSnapin:Windows PowerShell 管理单元“Microsoft.SystemCenter.VirtualMa” 这台机器上没有安装chinManager'。 在 line:1 char:13

我真的需要安装那个巨大的工具吗?我的虚拟机上没有足够的空间。 http://www.microsoft.com/en-us/download/details.aspx?id=10712

是否有另一种解决 get-vm 问题的方法?

谢谢!

【问题讨论】:

    标签: powershell-2.0


    【解决方案1】:

    您可以查看连接到装有 VMM 的机器。您可以使用远程处理来执行此操作。你可以在这里找到更多信息:http://windowsitpro.com/scripting/creating-remote-sessions-powershell-20?page=3

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-10-01
      • 2013-04-09
      • 1970-01-01
      • 1970-01-01
      • 2012-04-05
      • 1970-01-01
      • 2011-03-10
      • 2023-03-13
      相关资源
      最近更新 更多