Pinging via IPv4

by Nov 13, 2014

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 
 

Twitter This Tip! ReTweet this Tip!