I'm having a problem determining wether the logging in user is in the local administrators group.

code:
  
If ingroup("\\" + @Wksta + "\Administrators") = 1
? "yeah you can break stuff now"
else
? "sorry you can't delete all the registry keys today"
endif

I have verified on serveral machines that ingroup is returning "0" when they really are a local administrator. I have seen several posts regarding this topic but nothing was ever determined.

I can always shell out but I would rather not.. any one have any ideas.. is this a "feature" :-)

code:
  
Shell "%comspec% /c net localgroup administrators | find /i '@userid'"
if @error = 0
do something
else
do nothing
endif

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