WINDOWS - Test-Net-Connection: Difference between revisions

From Wiki.IT-Arts.net
(Created page with "Category:Post-It == Quick Example == <nowiki> Test-NetConnection -ComputerName 192.168.0.6 -InformationLevel "Detailed" -Port 3389</nowiki> == Test-NetConnection Command == <nowiki> Test-NetConnection [[-ComputerName] <String>] [-DiagnoseRouting] [-ConstrainSourceAddress <String>] [-ConstrainInterface <UInt32>] [-InformationLevel <String>] [<CommonParameters>]</nowiki> == Test a connection to a remote host == PowerShell : <nowiki>...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Post-It]]
[[Category:Post-It]]


== Quick Example ==
== Quick Examples ==
 
<nowiki>
tnc <Server> -port <PortNumber></nowiki>
 
Or :


  <nowiki>
  <nowiki>
Line 20: Line 25:




== Test a connection to a remote host ==
== Test A Connection To A Remote Host ==


PowerShell :
PowerShell :

Latest revision as of 11:08, 9 November 2024


Quick Examples

tnc <Server> -port <PortNumber>

Or :

Test-NetConnection -ComputerName 192.168.0.6 -InformationLevel "Detailed" -Port 3389


Test-NetConnection Command

Test-NetConnection
    [[-ComputerName] <String>]
    [-DiagnoseRouting]
    [-ConstrainSourceAddress <String>]
    [-ConstrainInterface <UInt32>]
    [-InformationLevel <String>]
    [<CommonParameters>]


Test A Connection To A Remote Host

PowerShell :

PS C:\> Test-NetConnection -ComputerName "www.contoso.com" -InformationLevel "Detailed"
PingReplyDetails (RTT) : 164 ms

ComputerName           : www.contoso.com

RemoteAddress          : 65.55.39.10

NameResolutionResults  : 65.55.39.10

                         64.4.6.100

InterfaceAlias         : Ethernet

SourceAddress          : 10.137.193.122

NetRoute (NextHop)     : 10.137.192.1

PingSucceeded          : True

PingReplyDetails (RTT) : 164 ms

This command tests ping connectivity to a remote host named www.contoso.com.


Usefull Links