October 25th, 2014

PowerTip: Test Connectivity to Remote Servers without Ping

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to test connectivity to remote servers without using Ping.

Hey, Scripting Guy! Question How can I test connectivity to remote servers to ensure my Windows PowerShell scripts will work if I
           have the Packet Internet Grouper (PING) blocked at the firewall?

Hey, Scripting Guy! Answer Use Test-WsMan, for example:

's1','s2' | % {Test-Wsman $_}

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.