how to get IP address of all virtual machines running on hyper V
In either PowerShell or Windows Batch, you can use arp -a
to list IP addresses of everything on your Windows machine (both real and Hyper-V machines are listed). You can filter on Mac address to get precisely the IP you're looking for.
arp -a | findstr 00-15-5d-19-73-00
172.17.210.62 00-15-5d-19-73-00 static
There's an answer to your question by the Ed Wilson, "The Scripting Guy" here:
https://blogs.technet.microsoft.com/heyscriptingguy/2013/04/24/use-powershell-to-get-name-and-ip-address-of-virtual-machines/
Adapting it to your case:
get-vm | ?{$_.State -eq "Running"} | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses | ft -wrap -autosize
I hope this is still useful.