Rate this Article:
You must be signed in to rate again
Article Feedback Print View
Alternate Languages: N/A

Autocreated Printers do not Delete After Users Log Off

Document ID: CTX051476   /   Created On: Feb 26, 2001   /   Updated On: Jul 11, 2008
Average Rating: 3

Symptoms

Autocreated printers fail to delete after logging off.

When a Citrix client-defined printer, network or locally attached, is autocreated as a client printer, the comment field is defined as such. Citrix uses this field to determine if this printer object should be deleted at logoff.

Causes

• The object was manually created. Therefore, there is no comment field.

• The comment field was altered. This may have been done to make the printer “static” or for other troubleshooting or application purposes.

• The session is in a disconnect state and/or the users profile has not unloaded successfully. The Disconnected scenario is by design. There are other Microsoft TechNet articles and possible Citrix knowledgebase articles to help troubleshoot the second scenario.

• Print Jobs were pending in the print queue. They were not set to delete at logoff and/or users could not delete pending jobs before logoff. See below for more details.

• The spooler service may not be working or was not working properly upon logoff. This may require the manual deletion of printer objects from the server’s registry, HKLM\System\CurrentControlSet\Control\Print\Printers, and the restarting of the print spooler service.

• CTX110890 – Hotfix PSE400R01W2K3074 - For Citrix Presentation Server 4.0 for Windows Server 2003 and CTX111216 – Hotfix PSE400W2k3X64020 - For Citrix Presentation Server 4.0 for Windows Server 2003 x64

• CTX112580 – Case Study: Intermittent Client Printer Creation and Deletion Failures

• CTX113484 – Hotfix Rollup Pack PSE400W2K3R04 - For Citrix Presentation Server 4.0, Citrix Access Essentials 1.0 and 1.5 for Windows Server 2003

Autocreated printers created using the legacy naming style might not be deleted when a session is terminated. The issue occurs if the Print Spooler and Citrix Print Manager Service restart while a session is active on the server.

[From PSE400R03W2K3052][#163396]

Autocreated printers that no longer have an associated session are not deleted when the Citrix Print Service (CPSVC) restarts.

[From PSE400W2K3R04][#160983]

• CTX116154 – LIMITED RELEASE - Hotfix PSE400R04W2K3032 - For Citrix Presentation Server 4.0 for Windows Server 2003

Under certain circumstances, session printers are not deleted when a user session is reset. [From PSE400R04W2K3020][#170433]

Non-autocreated printers attached to client devices are incorrectly deleted when the spooler service is restarted. [From PSE400R04W2K3032][#174830]

For MetaFrame 1.8:

If HKLM\SYSTEM\CurrentControlSet\Control\Citrix\ClientPrinterProperties key is there and has a DWORD value “fNotInheritKeepPrintedJobs”, which is set to be 1, the auto created client printers will not inherit the “keep printed jobs” attribute.

If that key is not present or that key does not have a DWORD value “fNotInheritKeepPrintedJobs” or the value is not 1, the auto created client printers will inherit the “keep printed jobs” attribute.

For MetaFrame XP and later:

If a session was disconnected while printing, the print spooler would hang. The feature is described below:

Important: MetaFrame XP Feature Release 2 and later servers allow for this configuration through the Printer Management Node of the Citrix or Presentation Server Management Consoles.

WARNING! Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Use Registry Editor at your own risk.

You can set two registry values on the server to toggle printer job deletion when a user logs off from an ICA session. Go to the following registry key:

HKLM\SYSTEM\CurrentControlSet\Control\Citrix\ClientPrinterProperties

A. Value name: fPurgeAnyWay

Data Type: DWORD

B. Value name: fNotInheritKeepPrintedJobs

Data Type: DWORD

If A and B are set to 1, all autocreated client printers and print jobs are deleted at logoff time.

If A is set to 1 and B is set to 0, the configuration is not supported. When A is set to 1, you must also set B to 1.

If A is set to 0, the autocreated client printer and associated print jobs are not deleted at logoff time.

Note: If a print job is not deleted because A is set to 0, printing resumes when the same client opens a new ICA session on the server.

Note: "Keep Printed Documents" is an attribute that is set on the client printer. If B is set to 1, the "Keep Printed Documents" attribute for the autocreated client printer is cleared, regardless of the client's local printer setting. If B is set to 0 (zero), the "Keep Printed Documents" attribute for the autocreated client printer inherits the client's local printer setting.

Note: A registry value that does not exist is equivalent to being set to 0.

Resolution

Ensure the latest ctxnotif.dll (Windows 2000 and later), cpmon.dll (cpmmon.dll for MetaFrame Presentation Server 3.0 and earlier), and if applicable ctxlogoff.exe (TSE 4.0) files are installed on the servers and resolve any of the above configuration issues.


Search
Knowledge Center
XenApp
XenApp Plugins (Clients)
XenServer
XenDesktop
NetScaler Application Delivery
Access Gateway
EdgeSight
Provisioning Server
WANScaler
Password Manager
Does it work with Citrix? Verify it - introducing the new Citrix Ready Community Verified