I think it was more as a workaround than solution.
he is looking for a way to determine the current user.

anyway, what comes to localadmin, check our udf-lib:
LocalAdmin() - checks for membership of local admin group

all it needs is one liner by the one-liner-genious [Wink]
_________________________
!

download KiXnet