Are you sure that individual InGroup() functions are not working as expected or could it be that the entire script is not running every time?

You might want to try to include the domain name in the parm.

If InGroup('domain\group')
'works' ?
EndIf

You may also need to optimize your network, checking for unnecessary of incorrectly oredered providers and protocols.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.