Powershell: Difference between revisions

From roonics
Jump to navigation Jump to search
Line 6: Line 6:
Example output:
Example output:
<pre style="color: white; background: #012456; width: 800px">
<pre style="color: white; background: #012456; width: 800px">
PS C:\Users\lab01> Test-NetConnection 10.10.10.10 -port 445


ComputerName          : 10.10.10.10
ComputerName          : 10.10.10.10
Line 15: Line 17:
PingReplyDetails (RTT) : 29 ms
PingReplyDetails (RTT) : 29 ms
TcpTestSucceeded      : True
TcpTestSucceeded      : True
PS C:\Users\lab01>
</pre>
</pre>

Revision as of 09:49, 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:

PS C:\Users\lab01> Test-NetConnection 10.10.10.10 -port 445


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



PS C:\Users\lab01>