Honeymooning this week, so little time to post, but I will tell you that the WMIQuery returns an ARRAY, not a simple VALUE. Instead of

$Var = WMIQuery(blah-blah)

try

$Var = WMIQuery(blah-blah0)[0]

This will return the first element of the array that the function returns. It's simple, but not always accurate, as the query could return multiple values. You'll need to determine where that's appropriate.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D