1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-14 12:55:24 +02:00
tldr/pages/windows/test-netconnection.md
harygary ecd11488e3
test-netconnection: add page (#12654)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2024-04-21 17:46:40 +02:00

13 lines
470 B
Markdown

# Test-NetConnection
> Display diagnostic information for a connection.
> This command can only be used through PowerShell.
> More information: <https://learn.microsoft.com/powershell/module/nettcpip/test-netconnection>.
- Test a connection and display detailed results:
`Test-NetConnection -InformationLevel Detailed`
- Test a connection to a remote host using the specified port number:
`Test-NetConnection -ComputerName {{ip_or_hostname}} -Port {{port_number}}`