DefaultPrnFlags Reference Document

DefaultPrnFlags Reference Document

book

Article ID: CTX119684

calendar_today

Updated On:

Description

This article provides an overview of the DefaultPrnFlags registry settings for XenApp servers along with common values and explanations.

Presentation Server 4.5 and XenApp 5.0 provide registry settings that can be used to change the default printing behavior. These settings track the various printing-related parameters on a per-session basis and are independent of policies configured in the management console. During log on, the session settings for printing are derived from a combination of Citrix policies, base Terminal Services defaults, and an optional DefaultPrnFlags value in the server’s registry.

Caution! Refer to the Disclaimer at the end of this article before using Registry Editor.

Complete the following steps to implement DefaultPrnFlags:
  1. Create a key named Print under HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ if it does not already exist (Wow6432Node is not used on 64-bit servers because the printing subsystem is 64-bit).

  2. Add a REG_DWORD value named DefaultPrnFlags under this key.

  3. Set the value to the desired flag(s).

The values used for DefaultPrnFlags are in hexadecimal format and any number of flags might be combined together to implement multiple features. For example, if you want to use the 0x00004000 and 0x00008000 flags as shown, the result is 0x0000C000. Enter this as C000 because you only work with the significant digits.
Citrix Technical Support created a tool to help administrators to manage the DefaultPrnFlags settings, along with other useful features. To download the tool, refer to CTX122962 - Citrix Printing Tool.

DefaultPrnFlags

Value

Explanation

Article

0x00000020

Creates the generic Citrix Universal Printer which is based on the Universal Print Driver, but not tied to any specific client printer.

CTX106812

0x00003000

By default, the system saves modified printer properties by sending them back to the client (if supported). If not, the system saves them in the user profile on the server. Setting this flag disables the printer properties save and restore to both the client exchange and the user profile.

CTX120621

0x00004000

By default, only the session users can access their autocreated printers. Even administrators on the server cannot access autocreated printers from other sessions. This flag adds the local administrators group to the ACL for all autocreated printers.

CTX108004

0x00008000

Forces the option for a print preview on all autocreated printers that use the Citrix Universal Print Driver as well as the Citrix Universal Printer.

CTX114287

0x00010000

Forces the option for a print preview on the client device when using the generic Citrix Universal Printer. By default, jobs are not previewed but sent directly to the client’s default printer.

CTX114287

0x00400000

Disables the connection of Session Printers during log on and reconnection.

CTX107415

0x00800000

Disables the deletion of Session Printers during log off. Results in the network printers becoming unmanaged within the user profiles.

CTX107415

0x10000000

Prevents drivers listed on the compatibility list in the management console from falling back to autocreate with the Universal Print Driver. Commonly used to prevent autocreation of printers such as faxes and PDF writers.

CTX110343

0x20000000

Adds the connected user account to the ACL of the autocreated printers. Allows users to print to their printers when they have multiple sessions on the same server with the same username from the same client device.

CTX106744

0x80000000

Disables the use of autoretained and autorestored printers. Existing printer property objects will still remain in user profiles, but they are ignored by the printing subsystem.

CTX117805

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might 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.

Issue/Introduction

This document provides an overview of the DefaultPrnFlags registry settings for XenApp servers along with common values and explanations.