title: Get foreign address name using NETSTAT for established active TCP connections
body: <p>I'm using NETSTAT command in PowerShell. I need to grab the list of foreign addresses which starts with XYZ name and are ESTABLISHED as state using TCP connections. </p>
  
  <p>I stuck up at parsing because of the NETSTAT result as below. </p>
  
  <p><code>PS C:\Windows\system32&gt; .\NETSTAT.EXE</code></p>
  
  <pre><code>Active Connections
  
    Proto  Local Address          Foreign Address        State
    TCP    10.125.4.233:2310      157.05.39.133:2492     ESTABLISHED
  </code></pre>
  
  <p>I need the foreign address names not the remote address on the local host only.<br>
  Remote address doesn't show the FQDN.</p>