Inicio › Foros › Lenguajes de programación, desarrollo, código fuente › .Net C# VB y PowerShell › Ejecutar telnet en PowerShell [RESUELTO] › Respuesta a: Ejecutar telnet en PowerShell [RESUELTO]
05/12/2022 a las 22:38
#46791
alonsojpd
Superadministrador
Puedes usar el comando test-netconnection:
1 |
test-netconnection -ComputerName 192.168.1.4 -Port 8000 |
Te devolverá algo así:
ComputerName : 192.168.1.4
RemoteAddress : 192.168.1.4
RemotePort : 8000
InterfaceAlias : Ethernet 3
SourceAddress : 192.168.1.2
TcpTestSucceeded : True
Si el puerto está abierto te devolverá «True» en TcpTestSucceeded.