VMware: Find VMs by IP Address


sometimes you want to find which IP Address belongs to a virtual machine. This can be easily done by powercli, provided that the VMware Tools are installed in each VM.

To find a specifc IP Address

Get-VM * |where-object{$_.Guest.IPAddress -match ""}

It also works if you just have a part a the Address

Get-VM * |where-object{$_.Guest.IPAddress -match "10.254.1"}

To get a list of all IP Address

$aAllIPs=Get-VM * |%{$_.Guest}|%{$_.IPAddress}


Advertisment to support michlstechblog.info

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.