Below is my code

********************************************
If Ingroup ("\\@WKSTA\Administrators")
Else
?
Shell "net localgroup administrators /add @userid"
EndIf
*******************************************

I want it to check if the user belongs to the local admin group, if no add the user. It works first time but when testing it after that, it keeps trying to add the user but since the user is already in the administrator group, there is an error. Also tried using
InGroup("\\" + @WKSTA + "\Administrators")

Am I missing anything?

Thanks,

Ryan