Powershell: Difference between revisions

From roonics
Jump to navigation Jump to search
Line 7: Line 7:
<pre style="color: white; background: #012456; width: 800px">
<pre style="color: white; background: #012456; width: 800px">


ComputerName          : 10.10.10.10
RemoteAddress          : 10.10.10.10
RemotePort            : 445
InterfaceAlias        : Ethernet
SourceAddress          : 10.10.10.20
PingSucceeded          : True
PingReplyDetails (RTT) : 29 ms
TcpTestSucceeded      : True
</pre>
</pre>

Revision as of 09:48, 29 August 2019

Powershell

Useful Commands

Test if port open from one server to another

Test-NetConnection 10.10.10.10 -port 445

Example output:


ComputerName           : 10.10.10.10
RemoteAddress          : 10.10.10.10
RemotePort             : 445
InterfaceAlias         : Ethernet
SourceAddress          : 10.10.10.20
PingSucceeded          : True
PingReplyDetails (RTT) : 29 ms
TcpTestSucceeded       : True