vmware – list all IPs on guest machines

If DNS is failing you…. You can run the following powercil script to list all IP’s to virtual machines within vmware….


$IPaddresses = @()

foreach($vm in Get-VM){
$vm.Guest.VmName | %{
$IPaddresses += $_
}
$vm.Guest.IPAddress | %{
$IPaddresses += $_
}
}

 

$IPaddresses