IF @PRIV = "ADMIN"
yada....
ELSE
; sends an email, so we know what machines do
; not "DOMAIN\Domain Users" as a member of their
; local Administrators group
yada....
ENDIF

We have numerous emails that were sent from machines which we know have "DOMAIN\Domain Users" in the local Administrators group. Some of those email were sent while a Domain Admin was logging in, so the @PRIV = "ADMIN" check is clearly failing, or I'm not using it properly. We are running KiX v4.21.

We've also tried
IF INGROUP("\\" + @WKSTA + "\Administrators") > 0
but that seemed to not work either.