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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store