PowerCLI - Get IP of VM

Another simple one liner to find a VM by IP (sometimes this times out in the GUI)

Requires: PowerCLI, VM-Tools and VMware

Get-VM |Where-Object{$_.Guest.IPAddress-eq '1.1.1.2'}

  • powercli, powershell, vmware
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

PowerCLI - datastore capacity with free space percentage (one liner)

This is a one liner that will compute free space percentage as well as dump datastore name,...

PowerCLI - Show all VMs with VM Disks less than % (requires vmtools)

This handy script will report all VMs with VM Disks less than the specified...

Powered by WHMCompleteSolution