gpt4 book ai didi

powershell - 如何从管理程序中以编程方式查找虚拟机的 IP 地址?

转载 作者:行者123 更新时间:2023-12-03 20:42:21 25 4
gpt4 key购买 nike

我正在使用 HyperV WMI 提供程序来更新虚拟机的配置/设置(如硬件、磁盘等)

  1. 如何从 HyperV 获取 VM 的 IpAddress?

  2. 如何在 VMWare 中做同样的事情?

问候,梦想家!

最佳答案

  1. This article描述了如何获取虚拟机的IP地址使用 Powershell 从 Hyper-V (Windows 2008 R2 Hyper-V) 运行计算机。
  2. 使用 PowerCli:(get-vm <name of your vm>).guest.ipaddress

关于powershell - 如何从管理程序中以编程方式查找虚拟机的 IP 地址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7986077/

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