All PowerShell versions
You can use ping.exe just like any other command inside PowerShell scripts. By adding “-4” to the command line, you can force ping to use IPv4 (add “-6” to force IPv6 instead).
PS> ping localhost -4
ReTweet this Tip!
Posted Nov 13 2014, 06:00 AM by ps1