Symptoms
Imported network printers assigned to users are not being retained as default printers.
This issue should not be confused with CTX106745 – Failed To Inherit Set as Default Printer Setting If a Client Device Has Several Printers
A similar but different issue: CTX108996 – Presentation Server 4.0 Session Printer Is Not Set As the Default As Defined Inside the Session Printer Policy
Resolution
This is as designed.
Assigned network printers are always deleted at logoff. Because the printers are deleted at logoff, there is nothing to set the default to when the users log on. To get around this, you can set a registry flag to not delete printers at logoff, which allows you to retain the default printer.
CTX104375 – Default Printer is Not Mapped Properly Within an ICA Session
CTX959786 – Explaining User Defined Printer Properties
Workaround
From CTX107059 – Advanced Concepts Guide
Refer to the Citrix Presentation Server 4.0 Advanced Concepts Guide, page 248, for more details.
Caution! This fix requires you to edit the registry. Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.
1. Add the following Registry key to each server:
HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Print
2. Create a DWORD Value called DefaultPrnFlags with a bit value of one or more of the following functions (if multiple functions are required, add the hex values):
Network printer connection flags:
CTXPRN_DISABLE_NETWORK_PRINTER_AUTOCONNECT (0x00400000)
CTXPRN_DISABLE_NETWORK_PRINTER_DISCONNECT (0x00800000)
Description:
The Presentation Server policies evaluated at login and reconnect include a special policy rule called "Session Printers" which can be used to add and delete network printer connections on behalf of the login user based on various policy criteria. Normally these network printer connections are added during logins/reconnects and then deleted during logout.
The two flags listed above are fail safes that allow the admin to temporarily disable all printer connection additions and deletions all at once without having to disable many different policies. Of course, this is mostly useful in certain troubleshooting scenarios. That said, turning off just the disconnection of network printers can actually improve server scalability at the expense of allowing printer connections made by the Session Printers policy rule to accumulate in user profiles.
Default Value - All zero unless one or more of the appropriate bit values are set in the REG_DWORD registry value "DefaultPrnFlags" at HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Print\.