Home Uncategorized Use Powershell to check remote ports

Use Powershell to check remote ports

48
0

Newer OS Powershell:

Test-NetConnection -ComputerName <remote server> -Port nnnn

Older OS Powershell:

$t = New-Object System.Net.Sockets.TcpClient 'my.hostname', 123; if($t.Connected) {"OK"}

LEAVE A REPLY

Please enter your comment!
Please enter your name here