Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tech-zombie/3e2d894526a2043b550b16ca4dfd336e to your computer and use it in GitHub Desktop.
Save tech-zombie/3e2d894526a2043b550b16ca4dfd336e to your computer and use it in GitHub Desktop.
first 4 configured IP address in vcenter
get-vm | select Name, @{N="IP1";E={@($_.guest.IPAddress[0])}}, @{N="IP2";E={@($_.guest.IPAddress[1])}}, @{N="IP3";E={@($_.guest.IPAddress[2])}}, @{N="IP4";E={@($_.guest.IPAddress[3])}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment