# Test-NetConnection

*noun*

say it: **“TEST NET kuh-NEK-shun”** **/ˈtɛst ˈnɛt kəˈnɛkʃən/**

A Windows PowerShell command that checks whether another computer answers and whether a program is listening at a given port on it.

## What does **Test-NetConnection** do?

`Test-NetConnection` checks more than whether a computer answers: with `-Port` it knocks on one numbered door and reports, in `TcpTestSucceeded`, whether a program is listening there, such as 443 for a website or 5985 for remoting. It's a Windows command.

```powershell
Test-NetConnection -ComputerName example.com -Port 443 -InformationLevel Quiet
# True
```

## In a sentence

- “TcpTestSucceeded was False in **Test-NetConnection**, so nothing listened at port 5985.”
- “**Test-NetConnection** said True for port 443 on example.com.”

Level: Journeyman · [More PowerShell terms at this level](https://www.ask-codey.com/glossary?category=powershell&level=3)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/test-netconnection
