I have a project where i need to do the below
From ServerA telnet to mulitiple server on a specific port.
ex:
Source = Server A
Destination = ServerB,ServerC,ServerD,ServerE
Port = 80
Usually i have to login to Server A and in the cmd issue a telnet [ telnet ServerB 80]..[telnet ServerC 80]...so on
its Ok if i have only one source server. As i have many..its very difficult.
======
$socket = new-object Net.Sockets.TcpClient
$socket.Connect("ServerA",80)
$socket.Connected
=====
But as there are mulitple Source SErvers from where i have to check..i have to login to all the servers to execute the above ps code.
remoting is not enabled.
Is there a way i can run the above ps code from one server ...like i am executing on source server and get the output.
====
Sorry if its confusing. Please reply back if you didn't understood anything.