test-netconnection: add page (#12654)

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
pull/28/head
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
1 changed files with 13 additions and 0 deletions

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}}`