anna,

I would suggest reading the responses of the UDF here - WMIQuery() - Execute a query against WMI enabled OSs as they provide many examples to help you along.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's