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

Leave a Reply

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