However, the 48 (semi-synchronous mode) cannot be used in conjunction with a .COUNT. Thus
code:
$a=$objWMIService.ExecQuery("Select * from $Class",,48)
? 'elements = '+$a.count
for each $b in $a
next

will not work AFAIK.
_________________________
There are two types of vessels, submarines and targets.