Get the IP addresses of Hyper-V VMs

Get all of the IP addresses of Hyper-V VMs.

foreach ($vm in $(Get-VM)) {
    "Name = $($vm.Name); IP = $($vm.NetworkAdapters.IPAddresses)"
    }

One thought on “Get the IP addresses of Hyper-V VMs”

Leave a Reply

Your email address will not be published. Required fields are marked *