Monday, December 19, 2016

Windows PowerShell Equivalents: Networking Commands (PING)

Looking for PowerShell equivalents for older console network commands such as PING. The PING command is used for checking connectivity and to measure network latency between two devices.

PowerShell: Test-NetConnection

Examples:
Test-NetConnection www.example.com
Test-NetConnection -ComputerName www.example.com -InformationLevel Detailed
Test-NetConnection -ComputerName www.example.com | Select-Object -ExpandProperty PingReplyDetails | Format-Table Address, Status, RoundTripTime

No comments: