Can you post your version of WMIQUERY() as I get an error on the line -
code:
   Exit VAL("&"+Right(DecToHex(@ERROR),4))

Thanks,

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