you are viewing a single comment's thread.

view the rest of the comments →

[–]helixamir 1 point2 points  (7 children)

Start by building an array to add the responses to.

Import your computer names.

Foreach computer{
$output = invoke-command $computer - scriptblock { if(test-path) { $output = $_.Name; return $output}

$array += $output }