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.
1 comment
Hide comments