Thanks for the advice. Here is what I found. When I run the script with the addprinterconnection without using if ingroup it maps the printer just fine. Is there a problem with group names like this: OKIC5200-RECON ??

Thanks for you help..