Welcome to KORG!

I'd start by adding some debug messages to your script. Right after the Sleep 3 line, add
 Code:
Del '%USERPROFILE%\debug.log'                     ; start with a fresh file
$Rc = RedirectOutput('%USERPROFILE%\debug.log')
@DATE ' - ' @TIME ?
Then, after each InGroup() test, add
 Code:
@USERID ': member of group xxxx' ?
This will at least verify that Kix is recognizing group memberships. Also, start the script once with "kix32 -f" to flush the token (group membership) cache.

Let us know what you find.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D