VMware Script – Get VMs and their IP (from VMware Tools)

Get-VM | Select Name, @{N="IP Address";E={@($_.guest.IPAddress[0])}} 

If you also want to get the Guest OS:

Get-VM | Select Name, @{N="IP Address";E={@($_.guest.IPAddress[0])}}, @{N="Guest OS"; E={$_.ExtensionData.Config.GuestFullName}}

Leave a Reply