what your asking might be able to be done, but not easily, like say in an IF statement...
you use the "net localgroup administrators >>member.txt"
on the command line which dumps the output to a text file..
then you could check the txt file to see if the users
(domain\user) name is in the file....if so hes an admin.
i know, not pretty. There maybe another option...you might be able to find out in the registry whether the current user has admin privliges..but i dont know. if you find out let us all know....
hope this helps
chris castelein
architectural designer
shive-hattery
cedar rapids iowa