I've discovered that it has to do with my ingroup for whatever reason. I removed the if ingroup and made the above code it's own .kix file and called it directly from the DOS prompt. I got the printers assigned, but it returned error code 2 on setting the default printer. Now I need to see what's up with my ingroup statement and then figure out the default printer.