Using PowerCLI to get the IP address of a VM

Here is a simple but handy PowerCLI one liner which can output the VM name and it’s IP address. Connect-VIServer localhost Get-VM | Select Name, @{N=”IP Address”;E={@($_.guest.IPAddress[0])}} Name                                            IP Address—-                                            ———-ABWEB1v                                                                                                                                                                                                                                                                                                                                                                                                                  Getting a little more complicated here we are getting all the VMs […]

Continue Reading