1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-25 00:15:26 +02:00

test-netconnection: add page (#12654)

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
harygary 2024-04-21 23:46:40 +08:00 committed by GitHub
parent e689a47d53
commit ecd11488e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,13 @@
# 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}}`