The more I am playing with it, the more I like it: Test-NetConnection. Test-NetConnection views information of a connection. What can we do with it?
If the computername was not specified, the default value is internetbeacon.msedge.net.
Let´s specify an address for the remote host.
Happy to see, that sid-500.com is responding much faster than the beacon thing. 😉
Test HTTP Connections
Is it possbile to establish a connection to sid-500.com over HTTP?
Test-NetConnection www.sid-500.com -CommonTCPPort HTTP
Yes, it is. And what about HTTPS?
Test-NetConnection www.sid-500.com -Port 443
Test RDP Connections
Well, my blog is working. Hopefully my blog cannot be reached via Remote Desktop (RDP). Good to see that it is not so.
Test-NetConnection www.sid-500.com -CommonTCPPort RDP
Running Test-Connection with tracert / traceroute
Traceroute traces the route of packets to a destination host. You can do the same with Test-NetConnection.
Test-NetConnection www.sid-500.com -TraceRoute
Running in Quiet Mode
Be Quiet. Show me only whether the host is reachable or not.
Test-NetConnection www.sid-500.com -InformationLevel Quiet
Running in Detailed Mode
To get more out of Test-Connection run it in Detailed Mode. Pay attention to the additional information about DNS Name Resolution and the Next Hop Address.
Test-NetConnection www.sid-500.com -InformationLevel Detailed
Hope this ist helpful. The “smaller” version is Test-Connection: The modern version of ping: Test-Connection.