oops "OUTPUT empty", the VAR quotes are gone and Admin Rights to all PC's.
Could it be the "//" in the UDF, before $computer...
Quote:


$wmi=getobject("winmgmts:{impersonationlevel=impersonate}!//$computer")




Code:

$xQuery = WMIService("SpntSvc","query",$computer)
$xMode = WMIService("SpntSvc","startmode",$computer)



Edited by RickB (2005-09-12 04:40 AM)