I know this is an old thread and marked correct in 2011, but it looks like it was done a bit the hard way. Check it out - all on one line
Get-VirtualPortGroup | ?{$_.Name -eq "Port-Group-Goes-Here"} | Get-VM | Select Name, {$_.Guest.IPAddress}
I know this is an old thread and marked correct in 2011, but it looks like it was done a bit the hard way. Check it out - all on one line
Get-VirtualPortGroup | ?{$_.Name -eq "Port-Group-Goes-Here"} | Get-VM | Select Name, {$_.Guest.IPAddress}