thanks NTDOC

yup that works. the suggestion you made

code:
if ingroup("\\" + @Wksta + "\Administrators")<>0
do some stuff
endif

has this reliably worked. I am currently using shell for deciding wether the user is a member of several other local groups. I want to use whatever will give me the most acurate results.

thanks
_________________________
WonderBoy Constantly learning everyday, how much I dont know :-)