WMIQuery() is a Function.

Functions are only available in kix 4 or better

for a function to work in a script, the function "body" must be included in the script somewhere.

Read the post about how to use UDFs
_________________________
How to ask questions the smart way <-----------> Before you ask