so, try instead of that line, this:
Code:

$u=WMIQuery("username","Win32_ComputerSystem",$b)
if @error
"error reported:" @error
get $ quit
endif
if not 0<=ubound($u)
"not array output on $u: ubound=" ubound($u)
get $ quit
endif
$u=$u[0]



simple tracing can save hours, right?
_________________________
!

download KiXnet