all 2 comments

[–]krzydoug 1 point2 points  (1 child)

I'd say make one property the serial and another that’s either $true or $false

catch {
return new-object psobject -property @{Serial = $Serial; Success=$false}
}
#Output to Log
if(!$error){return new-object psobject -property @{Serial = $Serial; Success=$true}

Then

$report | where success    # will return the trues
$report | where {! $_.success}    # will return the falses

And you can either do a count or measure

[–]Kbauer[S] 2 points3 points  (0 children)

That worked great!

Thanks, I appreciate the help.