Monthly Archives: July 2011

Test open port with powershell

Once on a Windows 2008 Server without a telnet client installed, I tried to test a connection on a specific port.

After a few Google researches, I found a neat little powershell script to test a port with powershell:

Connect with the following method to a specific host with the port of your desire:

You can now check the property $sock.Connected, whether the connection was successfully or not: