Test-Connection

noun

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

A PowerShell command that sends a small are-you-there message to a computer and times its replies.

What does Test-Connection do?

Test-Connection asks another computer "are you there?" with a ping and shows how long each reply took. -Count says how many times to ask and -Quiet boils it down to True or False for a script. Many Windows PCs ignore pings on purpose, so a False doesn't always mean the PC is off.

Test-Connection -TargetName example.com -Count 2 | Select-Object Ping, Address, Latency, Status
Test-Connection -TargetName example.com -Quiet

In a sentence

  • “With -Quiet, Test-Connection gave the script a plain True.”
  • “Test-Connection got two replies from example.com in under 20 milliseconds.”

Level: Apprentice · More PowerShell terms at this level

Updated