The problem is understanding how a Citrix (Terminal Services) login works:

1) The client runs the software to connect to the Citrix machine
2) They actually *login* to the server, as if they physically walked up and sat down at it.
3) Any application that they run is actually running on the Citrix Server.

So in my case, I have users in a remote office that connect and run an application.
-The printer that they want to print to is actually located in their department.
-I need to make the Citrix server aware that this printer exists, which I do using the aforementioned Standard TCPIP Port
-I have to manually add all the possible printers to the Citrix Server, and using the UsrMgr give access to certain people based on their group membership.
-If they run the application, they see all the *local printers* on the Citrix machine. This is kind of misleading, because those local printers are actually redirected to network IP ports, but that's beside the point. They see whatever their group membership lets them see.
-Depending on which department they are coming from however, I need to be able to set their default printer to be equal to one of those local printers.

So basically I'm trying to reference a printer that's attached to the same machine as the one that's running the Kix script.

quote:
i'm assuming you just try to have a workstaion connect to the printer on the server?
Normally, you share the printer on the server, do a ADDPRINTERCONNECTION on the client and then you cna do a SETDEFAULTPRINTER on the client. Now, this is in a simple domain setup, I'm not sure whether you are trying to use Citrix-specific stuff. Give this a try in your login script:

code:
--------------------------------------------------------------------------------

$retcode=AddPrinterConnection("\\CITRIX1\OHSPRTRLR")? @ERROR+' - '+@SERROR$retcode=SetDefaultPrinter("\\CITRIX1\OHSPRTRLR")? @ERROR+' - '+@SERROR