Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Pinging a subnet

$
0
0

I would like to ping a subnet where i get the address, status, however missing dns name or host name - also timeout do not reflect the address -  I would like to get timeouts displayed in red. Here is the code i am using

$ping = New-Object System.Net.Networkinformation.Ping
1..254 | % { $ping.send(“140.18.101.$_”) | select address, status }


Viewing all articles
Browse latest Browse all 6937

Trending Articles