Powershell Test Network Connection
Here’s the command to test a network connection in Powershell.
<pre lang="bash">
C:> Test-NetConnection -ComputerName server -Port 443
Result:
<pre lang="bash">
ComputerName : server
RemoteAddress : 10.0.0.5
RemotePort : 443
InterfaceAlias : Ethernet 0
SourceAddress : 10.1.1.34
TcpTestSucceeded : True