Follow dba-ninja.com

Subscribe to RSS feed  Follow @jackvamvas - Twitter

*Use the Comments section for questions

dba-ninja.com Links

Dba_db2_button

Sqlserver_dba_button

How to diagnose a connection with Test-NetConnection

28 April,2025 by Rambler

Question:   How can I diagnose a connection using a Powershell cmdlet ?

Answer: A handy  Powershell cmdlet is   Test-NetConnection

An example usage :

1) testing Ping Connectivity 

Test-NetConnection google.com -port 80


ComputerName : google.com
RemoteAddress : 142.250.187.238
RemotePort : 80
InterfaceAlias : Ethernet 2
SourceAddress : 11.111.111.10
TcpTestSucceeded : True

 

for more detailed information : Test-NetConnection

 


Author: Rambler (http://www.dba-ninja.com)


Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on How to diagnose a connection with Test-NetConnection


dba-ninja.com