Yes. The output indicates that the result of the PrimaryGroup is 7278 and not Printer_MRH-01_Q-MIS2 as it should be. At least that is what I am using for setdefaultprinter in my instance.

How is the primary group returned numerically instead of by name? Maybe this is where the problem lies. My script only sets default printer if the groupnames starts with Printer_ and then uses the remainder of group name to determine printer name.

Terri