Last Updated: February 25, 2016
·
1.074K
· gexos

Test-connection using PowerShell

A quick connectivity test to a remote computer:

if(test-connection $computer -count 1 -quiet){ <#Do this#> }
else { <#Do that#> }