Skip to main content

Testing communication ports with PowerShell (Without Telnet)

  • September 6, 2022
  • 6 comments
  • 28132 views

wolff.mateus
Forum|alt.badge.img+11

During troubleshooting a backup environment, it’s common the necessity of test ports responsivity of our backup servers, like Veeam backup server, mount server, proxy or repositories.

We normally do that with telnet. However, by default telnet client is not installed during Windows Server and the Veeam Backup Server often is our principal component our backup infrastructure.

So, if you want to test some communication port without install telnet client, you can use PowerShell for it.

Use the sintax below:

Test-NetConnection -ComputerName <IP> -Port <port>

Here is an example for the command:

An interesting point is that if the communication port is not well succeeded, the utility make an aditional ping test:

 

6 comments

Chris.Childerhose
Forum|alt.badge.img+21
  • Veeam Legend, Veeam Vanguard
  • 9586 comments
  • September 6, 2022

Love using this command to test things like VCC connections.  Great share. 👍


JMeixner
Forum|alt.badge.img+16
  • On the path to Greatness
  • 2687 comments
  • September 6, 2022

Yes, great command. And available at every Windows maschine. I use it often 😎👍🏼


marcofabbri
Forum|alt.badge.img+12
  • On the path to Greatness
  • 994 comments
  • September 7, 2022

Nice share, could be a great alternative way to putty 😎


dloseke
Forum|alt.badge.img+8
  • Veeam Vanguard
  • 1459 comments
  • September 7, 2022

Thanks for this.  I always seem to forget this command exists and either end up installing the telnet client or pull out a portable copy of PuTTY and use it.


dips
Forum|alt.badge.img+7
  • On the path to Greatness
  • 823 comments
  • September 9, 2022

Great share @wolff.mateus 

And if you don’t fancy typing it all out, the alias for it is ‘TNC’ 😀


wolff.mateus
Forum|alt.badge.img+11
  • Author
  • Veeam Vanguard
  • 588 comments
  • September 9, 2022

Great share @wolff.mateus 

And if you don’t fancy typing it all out, the alias for it is ‘TNC’ 😀

Wow! I really don’t know that.

Thanks @dips!