Was the group re-named by any chance? Ive had problems with groups getting recognized after they were renamed.

And also, there is no need to script the deletion of the group cache from the registry. Running the script with the /f option does the same thing.