title: Ping range of IP addresses
body: <p>I need to read IP address and subnet mask from a file  and display all appropriate ip addresses with status. This command can display a list of addresses:</p>
  
  <pre><code>New-Object System.Net.Networkinformation.Ping.send("ip.$_")
  </code></pre>
  
  <p>but it requires only IP address. How to make to be able to use a mask too?</p>
  
  <p><strong>File example:</strong></p>
  
  <pre class="lang-none prettyprint-override"><code>192.168.0.10
  255.255.255.0
  </code></pre>