title: PowerCLI - Finding Virtual Machine via VM IP
body: <p>I am trying to locate specific VM's based from IP addresses in PowerCLI.  I found this script online <a href="https://communities.vmware.com/thread/499839" rel="noreferrer">Grabbing VM ipaddress via PowerCLI</a></p>
  
  <p>The intial question explaines the issues I was having, and the answer looks to resolve such issues, however when I run such script:</p>
  
  <pre><code>Get-View -ViewType VirtualMachine | Select @{N='IP';E={[string]::Join(',',$_.Guest.net.IPAddress)}}
  </code></pre>
  
  <p>All I get is the following output:</p>
  
  <pre><code>IP
  --
  </code></pre>
  
  <p>And that's it... Am I missing input such as specifying a cluster or DC, does this work for anyone else? </p>