hmm...
could you try just something simple as:
@primarygroup ?
@error @serror ?


this as simple script a possible has nothing to do with other stuff so it would so definitely if the problem is there.

also, I must wonder.
primarygroup normally is domain-users, have you changed that?
if not, there is meaning in retrieving the info.
_________________________
!

download KiXnet