Since you are using Xendesktop, would you be willing to test out another UDF, ClientName().

As far as I know this has never been tested in that environment, and it would be great to add that as something that also works.

http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=207561#Post207561