title: PowerShell: Format Get-WmiObject output to return only the IP address
body: <p>I would like to use Get-WmiObject Win32_NetworkAdapterConfiguration to return the ip address of a network card. Unfortunately, I cannot figure out how to format the output to display only the IPv.4 address. </p>
  
  <pre><code>Get-WmiObject Win32_NetworkAdapterConfiguration | Select IPAddress | Where-Object {$_.IPaddress -like "192.168*"}
  </code></pre>
  
  <p>Displays:</p>
  
  <pre><code>IPAddress
  ---------
  {192.168.56.1, fe80::8980:15f4:e2f4:aeca}
  </code></pre>
  
  <p>Using the above output as an example, I would like it to only return 192.168.56.1 (Some clients have multiple NIC's, hence the "Where-Object")</p>