Saleem:

Could you please do your homework before your next post?

Please read ABC's of KiXtart board etiquette and message to new forum users since it explains how to post f!@#$ing
code the correct way, and keep the lines shorter by NOT posting 500 '*'s in a comment line.

Also, if you would take a look at the WMIQuery function header, it does explain what to assign those variables. $computer
obviously assigns an optional computername (for remote queries) and $where and $x limit the query to 'WHERE $where=$x'.

The UDF is pre-packaged, if you will, so you don't need to mess arounf with anything inside the UDF. Just
use it as specified in How to use UDFs

[ 07. November 2002, 15:41: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.