title: Returning StatusCode from Test-Connection
body: <p>test-connection server | select-object *</p>
  
  <p>returns many properties, among them StatusCode.</p>
  
  <p>How can I return only this value?
  My best guess would be</p>
  
  <pre><code>$r = test-connection server
  $r.statuscode
  </code></pre>
  
  <p>but that doesn't work.
  How do I do it?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa394350%28v=vs.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/aa394350%28v=vs.85%29.aspx</a> has more information about the statuscode I would like to receive.. No luck yet!</p>