In Powershell is there a better way to ping a host indefinitely besides doing something like this:
$max = [System.Int32]::MaxValue
ping host -count $max
The '%WINDIR%\System32\ping.exe' has a '-t' option to ping until Ctrl-C is pressed.
|
In Powershell is there a better way to ping a host indefinitely besides doing something like this:
| ||||
|
feedback
|
This will ping indefinitely until you press Ctrl-C just like | |||||
feedback
|
|
There is nothing at all wrong with John T's answer, but I will point out just for completeness sake that ping.exe is still there so this would work just fine in PS as well:
| |||
|
feedback
|