Kent,

Is that a good thing Are you further ahead ?

Is this where you are heading with this ? A WmiSelect type UDF ?


break on


$hostlist = "shawn","shawn"


for each $hostname in $hostlist


$response = WmiSelect($hostname,"select * from CIM_StatisticalInformation")


for each $instance in $response
?"instance=" $instance.getobjecttext_
next


next


exit


function WmiSelect($hostname,$query)


dim $wmi


$wmi = getobject("winmgmts:{impersonationlevel=impersonate}!//"+$hostname+"\root\cimv2")


$wmiselect = $wmi.execquery($query)


endfunction

-Shawn