Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
Find the IP addresses of all VMs quickly via PowerShell.
May 29, 2016
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.
You May Also Like