Quickly view all IP addresses of Hyper-V VMs

Quickly view all IP addresses of Hyper-V VMs

Q. How can I quickly view all the IP addresses from inside my Hyper-V VMs?

A. To retrieve the IP address via the Hyper-V integration services (Windows and Linux) use the following PowerShell:

Get-VM | Select-Object -ExpandProperty NetworkAdapters | Select-Object VMName,IPAddresses

This will display all the IP addresses for all VMs.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish