I think just this would be more to your liking...

if ingroup('@wksta\'+sidtoname('S-1-5-32-544'))

Think the other syntax was/is some tricky form of doing a combination ingroup(admin) and/or are we running Windows 98 check.

-Shawn