Why do you need to RunAs Administrator and check group membership? Logon scripts should run in the security context of the user.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.