Exit is explained in the manual. 0 or 1 is passed as ERRORLEVEL.

It's InGroup not INGROUP and it does work with AD.

What version of KiX?

What type of AD group?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.