I am trying to add a printer connection in a Citrix/Terminal server login script to a printer on the domain where the server is located. When I run the AddPrinter command it gives me the error code 122 (ERROR_INSUFFICIENT_BUFFER). This only happens on some login ids and not others. Does anyone have any idea what may be going on here? I have deleted and recreated login profiles with no luck.

Thanks in advance!