Here’s a handy way to use the cmdlet test-netconnection
:
Need to check a continuous connection to an end-point? Use the while loop:
while ($true) {test-netconnection -computername fatdex.ca -port 443 -InformationLevel Detailed}
for the -InformationLevel
, you can leave it out, or just use either detailed
or quiet