Terminal Server and Printer Redirection

Terminal Server and Printer Redirection

  • Comments 38

A common issue we work with is Printer Redirection issues with Terminal Services on Windows Server 2003.  Although printer redirection seems fairly simple on the surface, the issues that we work on can get somewhat convoluted.  So today we're going to look at some common troubleshooting steps for Printer Redirection issues.  However, before we get to the troubleshooting steps for tackling this problem let's take a quick look at Printer Redirection itself.

Printer redirection was first implemented in Windows 2000 Server.  Printer redirection enables the users to print to their locally installed printer from a terminal services session.  The Terminal Server client enumerates the local print queues to detect the locally installed printers.  This list is presented to the server and server creates the print queue in the session. The TS client provides the driver string name for the locally installed printers and if the server has matching drivers installed then the printers will be redirected.  When we look at Printers on the Terminal Server, a redirected printer will have a name similar to what is shown below:

TSPrintRedirectionAs you can see, the naming convention follows this format:

Client Printer Name (from Client Computer Name) in Session Number

The printer queues created in this manner are referred to as automatic printer queues.  However the Terminal Server administrator  could also create manual print queues by selecting the redirected ports in the Add Printer Wizard.

Seems pretty simple, right?  Let's start looking at some problem scenarios ...

Scenario 1: Printer Redirection fails for all clients

The most common scenario is when Printer Redirection does not work for any of the Terminal Server clients.  There are a number of troubleshooting steps to take when this occurs:

Check the Windows Printer Mapping Check Box:

Launch the Terminal Services Configuration utility.  Double-click the Connections folder.  In the right-hand pane, right click on RDP-Tcp and select properties.

image

Once you have the property sheet open, select the Client Settings tab.  At the bottom of the tab, there is a section labeled Disable the following: as shown below.  Ensure that the Windows Printer mapping checkbox is not selected.  If it is, that means that the Terminal Server will not allow client Printer Redirection.

TSWindowsPrinterMapping

Group Policy Settings:

Printer Redirection can also be configured through Group Policy.  The setting to prevent client printer redirection is located in the following container: Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Client / Server Data Redirection.  The name of the policy setting is "Do not allow client printer redirection" as shown below

TSGPOPrintRedirection 

If this policy is enabled, it will prevent client printer redirection.  In addition, the Windows printer mapping checkbox in the Terminal Server Configuration console is disabled.

TSGPOPrintRedirection2

Terminal Server Device Redirector:

The server side component responsible for printer redirection is RDPDR.SYS.  You can check the status of this driver in Device manager as shown below. If the Terminal Server Device Redirector is disabled, as in the screenshot below then device redirection will not work.

TSDeviceRedirectorDisabled

Make sure that Terminal Server Device Redirector is in enabled status.  You can also use the following command to recreate this device: devcon -r install %windir%\inf\machine.inf root\rdpdr.  More information on the DevCon utility is available in

Microsoft KB Article 311272.

Registry key verification

If you have implemented the  mentioned in Microsoft KB Article 268065 it will prevent printer redirection from functioning.  As per this KB if the registry value fEnablePrintRDR is set to 0, Printer Redirection will fail even if the Print Spooler is started on the Terminal Server.  This will not register any events.  As part of your standard troubleshooting you should check whether the following value exists:  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\fEnablePrintRDR

Scenario 2: Printer redirection fails for a single client:

When Printer redirection fails for a single client, there are a couple of things to check.  First, check the settings on the Remote Desktop client on the problem machine and ensure that the Printers check box is checked to allow redirection:

RDPClientPrinter 

The other thing to check (often overlooked) is the Remote Desktop Client version on the problem machine.  You should always ensure that you are running the latest RDP Client on your client machines.

Scenario 3: Certain Printers are not Redirected

In some situations, individual printers are not redirected.  On the Terminal Server itself you may see an error similar to the one below:

Type: Error
Event ID: 1111
Description: Driver drivername required for printer printertype is unknown. Contact the administrator to install the driver before you log in again.

In many instances, the quickest way to work around this situation is to install the printer driver directly on the Terminal Server.  However, with Windows 2003 Server Service Pack 1, you can use the Fallback Driver Capability instead.  The policy for this is located under Computer Configuration\Administrative Templates\Windows Components\Terminal Services\Client / Server data redirection\Terminal Server Fallback Printer Driver Behavior

image

When you enable the policy, you have the following options:
image

An extremely useful tool to use when troubleshooting Printer Redirection is the TS Printer Redirection Wizard tool.  This utility scans the Terminal Server's System Even log and detects all Event ID 1111 events with a source of "TermServDevices".  The tool then scans the registry for installed Version 3 MINI drivers, and prompts the Administrator to substitute an installed driver for each of the printers that failed redirection.  Any changes are written to a file where the custom redirected printer mappings are stored.

Sometimes multifunction print devices may not be redirected unless you are running Windows Server 2003 on your local computer because they use DOT4 ports. Only W2K3 redirects printer port names that do not begin with COM, LPT, or USB.  If you are using a Windows XP machine use the workaround mentioned in Microsoft KB Article 302361.

Last but by no means least, please do not forget to make sure that your printing subsystem is functioning properly on both the Terminal Server and the TS Clients even before you start troubleshooting printer redirection issues in Terminal Services.

And just as a quick note, Citrix uses different methods for redirecting printers and these troubleshooting steps may not be applicable for Citrix servers.  And that brings us to the end of our post on Terminal Server and Printer Redirection.  I hope you find this information useful, and if you have any feedback, please don't hesitate to let us know!

Additional Resources:

- Nithin Das

Leave a Comment
  • Please add 3 and 7 and type the answer here:
  • Post
  • [q] When I attempt to print from the TS session, the print job shows up in the print queue but does not print to the print device without a Print Spooler restart, and then the job hangs in the print queue and does not allow subsequent prints to be processed.

    Any help would be appreciated.

    [/q]

    I'm having the same problem, except with a Dell printer.

    A Dell Photo AIO Printer 924 to be more precise.

    Job shows up in the queue, but nothing happens.

    I am unable to print a testpage, print from notepad, Word etc, all jobs show in the queue but nothing happens.

    All other printer are redirected just fine and work like a charm, except for this one.

  • I am having an issue where the printer redirects fine and works for a little while. The at random times some of the redirected printers just stop. Even if they log off and login again their printer won't print. They only way I can fix this is by deleting their user from AD and adding it again. I am on using TS on Server 2008

  • Thanks for this useful article, almost 4 days checking, everything looked to be all right. I do not know why but Windows Printer mapping checkbox was selected.

    Tons of Thanks

  • We have a x200 laptop with a physically attached HP2200, that works fine locally, but won't show up in TS. We tried applying the registry change, but the printer still won't show up in TS.  The Lenovo X200 has no printer port. We tried setting it up as an LPT, but you cannot. Please advise.

    THanks!!

  • Has anyone answered the above post:

    re: Terminal Server and Printer Redirection

    Friday, November 02, 2007 12:12 PM by Bryn Hackland

    Trying to run the redirection wizard on Windows Server 2003 X64d getting 'error 3' no Version 3 Mini Drivers Installed. Install at least one. Looked all over the support groups to find out how to install a version 3 mini driver to no avail. Can anyone help?

    I'm having the same problem.

  • We are currently having issues in our terminal server. when the user logs off from the session the redirected printer is/are not automatically deleted from the server. So when the user log back in, it end with two printers, one on the current session the user is logged and the second one from the old session that is no longer on the server. The printer therefore doesn't work properly.

    currently to fix this issue we have to log off the user and then manually as administrator delete all the redirected printers from the system.

    I have the profile hive cleaner installed and its still same issue.

    Any ideas?

  • I have customers who have bought laptops with W7 64 bit. Up until then they used XP Pro and everything was fine with remote printing etc. The servers are SBS2003 with a TS on WS2003.

    With W7, printers do not show up and Hard Drives can not attach either to a remote session. I have tried all over the internet and with MS discussion groups. No answers yet.

    Adding the W7 64 bit drivers to 2003 does not work obviously, they are not compatible. In the past we used XP drivers as they are compatible with 2003 servers.

    I have not tried these suggestions here but I doubt they will work as it appears to be deeper given the trouble with connecting remote hard drives.

    Any thoughts?

    Barry

  • Everytime I start up in Windows 7 some of my printers have been deleted eg PDF printer and the Canon.  I use the labtop at work and at home and therefore need 2 printer and the PDF printer to print on.  What is wrong with the thing?

  • Will the solution at Article 302361 also work for a Windows 7 computer? In a remote desktop session only the usb printer is not redirected.

  • Does the solution at article 302361 also work for Windows 7 Pro?  While in a remote desktop session it does not redirect a USB printer.

  • I made the registry change per the article, but it didn't work. Any ideas?

  • I made the registry change per the article, but it didn't work. Any ideas?

  • Hi guys,

    where can i find:

    Scenario 2: Printer redirection fails for a single client:

    When Printer redirection fails for a single client, there are a couple of things to check.  First, check the settings on the Remote Desktop client on the problem machine and ensure that the Printers check box is checked to allow redirection:

    on a win 7 ultimate PC. All printers are redirected except Generic / Text only which shows remote desktop easy print but needs to show Generic / Text and cant change it.

    any help, idea?

    Thanks in Advance.

    Raja

  • Is it safe to remove the third party monitors and set winprint as the print processor for printers on a TS Server to prevent issues like spool crashing due to a faulty module? If they are removed will clients still redirect fine?

  • we have problems with printing and spooler crash,

    we are now using tsprint from terminalworks.com

Page 2 of 3 (38 items) 123