Powershell

From roonics
Jump to navigation Jump to search

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