That's exactly what I was looking for! Just couldn't figure out the correct syntax I guess.

Can you tell me why this doesn't work?

Code:
$ob=WMIQuery("*","Win32_Service",@wksta,"name","mcshield")
For Each $i in $ob
? $i.state
next

_________________________
-Jim

...the sort of general malaise that only the genius possess and the insane lament.