Maybe try including the domain:
Code:
If InGroup("MYDOMAIN\mygroup")...