Tuesday, July 3, 2012

Restricting Print Driver Installations on XenApp


Summary
This document provides a workaround to prevent all print drivers from being installed on a XenApp server.
Background
The vast majority of printing problems in Terminal Services and XenApp environments are caused by non-native, manufacturer provided, print drivers that exhibit poor multi-threaded performance. Unfortunately, print drivers can get installed on a server from many sources, including replication, RDP connections, connection to network printers, user profiles, and so on.
Procedure
For XenApp on Windows 2008 see CTX128775 – How to Customize Client Selective Trust and User Defined Client Device Settings
Use the steps below to complete the task. You might want to remove all non-native, manufacturer provided print drivers beforehand. The Print Detective utility at CTX116474 - Print Detective allows for quick filtering and deleting of these print drivers.
Caution! This procedure 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 the Registry Editor at your own risk. Back up the registry before you edit it.
  1. From the XenApp Advanced Configuration Console, select Policies > Create Policy. Name the policy and click OK.
  2. Select the new policy, expand Printing, and expand Drivers.
  3. Select Native printer driver auto-install.
  4. Select Enabled and Do not automatically install drivers. This prevents the XenApp printing subsystem from attempting to install native print drivers when users connect.
  5. Right-click the policy and select Apply this policy to.
  6. Select the Servers filter and apply it to one or more servers in the environment as needed.
  7. Open the following registry key on the servers where the newly created Citrix policy is being applied:
    HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3
    Right-click the Version-3 key and set permissions for all accounts on the ACL to read. You must copy the default inherited permissions before modifying. To prevent 64-bit print drivers from being installed (whether the system is 64-bit or not) adjust the permissions on the same Version-3 key under Windows x64 instead of Windows NT x86.
Now if a print driver installation attempt is made, it should fail and present an access denied error message. If drivers need to be installed at some point, add back the modify privilege to the appropriate accounts .

No comments:

Post a Comment