Host scan (Windows)
Host scan (cmd)
for /L %i in (1 1 254) do ping 172.16.6.%i -n 1 -w 100 | find "Reply"Host scan (powershell)
1..254 | % {"172.16.5.$($_): $(Test-Connection -count 1 -comp 172.15.5.$($_) -quiet)"} OR1..254 | ForEach-Object { $ip = "172.16.6.$_"; if (Test-Connection -Count 1 -ComputerName $ip -Quiet) { $ip } } OR1..254 | ForEach-Object { "172.16.6.$_" } | Where-Object { Test-Connection -Count 1 -ComputerName $_ -Quiet }Last updated