Find Available IP address in Network using Powershell

1..254  | ForEach-Object {
      if(!(Test-Connection 192.168.1.$_ -count 1 -Quiet)) {
            Write-Output "IP Address Available 192.168.1.$_"
      }
      else {
        Write-Output "IP Address in use 192.168.1.$_"
      }

}

 

Leave a Reply

Your email address will not be published. Required fields are marked *