Do you call all of your UDFs at once (like at the beginning of your script)? Or do you call them when you use them? What's your current directory when you call wmiquery.udf?

For some reason it is not finding that udf. Have you tried calling @lserver\netlogon\functions\wmiquery.udf. Is your udf replicated to all of your servers.
_________________________
Eric