Test-Connection
SafePing as objects
Test-Connection <host> -Count 4
PowerShell ping. -Quiet returns a clean boolean — ideal for liveness checks in scripts.
Examples
'srv01','srv02' | % { Test-Connection $_ -Count 1 -Quiet }Bulk liveness check
Syntax
Test-Connection <host> [-Count N] [-Quiet]
Before you run it
Read only.
Related commands
- pingBasic reachability test
- Test-NetConnectionPing + port reachability
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store