title: Powershell IP scanner
body: <p>i have this powershell script to check for unused ip </p>
  
  <pre><code>$ipgroupes = "192.168.2"
  $ipstart = 1
  $ipend = 255
  
  $ipstart..$ipend  | ForEach-Object{
      $ip = "$ipgroupes.0" -replace "0$",$_
  
  If (-not(Resolve-DnsName -Name $ip -QuickTimeout -Type ANY -ErrorAction              
      SilentlyContinue) -And (!(Test-Connection $ip -count 1 -quiet)))
  
      {
  
          write-host "$ip is not used" -ForegroundColor Green
  
  
      }
  
  
  
  }
  </code></pre>
  
  <p>the script is working fine but i've been asked to exclude the ip 80 to 149 from the search. I need help on how to get this done ? </p>