Try this:
code:
if ingroup(@wksta+'\Administrators')
? 'Administrator '+@userid
else
? 'Not an Administrator '+@userid
endif

and please familiarize yourself with some basic error checking routines like the use of DEBUG ON and @ERROR/@SERROR to display error codes.
_________________________
There are two types of vessels, submarines and targets.