Get all of the IP addresses of Hyper-V VMs.
foreach ($vm in $(Get-VM)) {
"Name = $($vm.Name); IP = $($vm.NetworkAdapters.IPAddresses)"
}
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”