If using Test-Connection on multiple computers with -Quiet how do I know which result is for which computer?
e.g.
$computers = ("PC1","PC2","PC3")
$results = Test-Connection -ComputerName $computers -count 2 -quiet
EDITED TO SHOW POINT I AM MAKING IN DISCUSSION BELOW
Using without -quiet
$computers = ("PC1","PC2","PC3")
$results = Test-Connection -ComputerName $computers -count 2
PC3 not responding so get error
Test-Connection : Testing connection to computer 'PC3' failed: No such host is known At line:3 char:16
And $results only contains those 2 computers which worked
How to get $results to contains results for all 3 computers - with status of failure for PC3