Skip to main content

Powershell: Test-NetConnection


PS C:\Users\tuyen> get-help Test-NetConnection

NAME
    Test-NetConnection

SYNTAX
    Test-NetConnection [[-ComputerName] <string>] [-TraceRoute] [-Hops <int>] [-InformationLevel {Quiet |
    Detailed}]  [<CommonParameters>]

    Test-NetConnection [[-ComputerName] <string>] [-CommonTCPPort] {HTTP | RDP | SMB | WINRM}
    [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]

    Test-NetConnection [[-ComputerName] <string>] -Port <int> [-InformationLevel {Quiet | Detailed}]
    [<CommonParameters>]

    Test-NetConnection [[-ComputerName] <string>] -DiagnoseRouting [-ConstrainSourceAddress <string>]
    [-ConstrainInterface <uint32>] [-InformationLevel {Quiet | Detailed}]  [<CommonParameters>]


ALIASES
    TNC


REMARKS
    Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
        -- To download and install Help files for the module that includes this cmdlet, use Update-Help.

PS C:\Users\tuyen> Test-NetConnection -InformationLevel Detailed -ComputerName portquiz.net -Port 27017


ComputerName            : portquiz.net
RemoteAddress           : 178.33.250.62
RemotePort              : 27017
NameResolutionResults   : 178.33.250.62
MatchingIPsecRules      :
NetworkIsolationContext : Internet
IsAdmin                 : False
InterfaceAlias          : Ethernet
SourceAddress           : 192.168.64.66
NetRoute (NextHop)      : 192.168.64.1
TcpTestSucceeded        : True

Popular posts from this blog

IIS: Delete cached files on server running IIS

Delete cached files on server running IIS When changing css, javascript files, check to delete if IIS still caches old files in the default folder C:\inetpub\temp\IIS Temporary Compressed Files\<sitename>\$^_gzip_D^\ Apply to: IIS 8.5

Most MISPRONOUNCED words in HI-TECH

algorithm developer editor automation architecture firewall hardware & software framework server infrastructure

ManageEngine ServiceDesk Plus - Reset password

Let's reset the default administrator's password to 'admin'