Help and Support  

Printer Redirection or Upgrade May Not Work Because of Signed Ntprint.inf File

Article ID:275495
Last Review:November 14, 2003
Revision:3.0
This article was previously published under Q275495
IMPORTANT: This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 (http://support.microsoft.com/kb/256986/EN-US/) Description of the Microsoft Windows Registry

SYMPTOMS

You may experience either of the following symptoms:
In Terminal Services, you have created redirected print queues on the server for each queue that exists on the client computer. Print jobs are routed from server queues to client queues by using Terminal Services virtual channels. When a client computer connects, the client enumerates its local printers and sends information (such as the printer and print driver name) to the server. The server uses this information to create a corresponding server queue. If the client queue is associated with a Microsoft-provided driver that is installed on the server, printer creation is automatic and works correctly. However, if a corresponding driver on the server does not exist, the installation does not succeed.
If you use an Original Equipment Manufacturer (OEM) driver that does not have an exact name match to the name in the Ntprint.inf file, Windows does not install the driver.

CAUSE

Because the Ntprint.inf file is signed, there is no method available to add support for redirection or printer upgrades for supported OEM drivers.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
260910 (http://support.microsoft.com/kb/260910/EN-US/) How to Obtain the Latest Windows 2000 Service Pack
The English version of this fix should have the following file attributes or later:
   Date        Time    Version        Size    File name
   -------------------------------------------------------
   10/04/2000  7:39PM  5.0.2195.2418  54,032  Wlnotify.dll
				

In addition to applying the hotfix, you must add two registry values. These registry entries provide the capability for the user to specify an additional .inf file/section combination that defines user-defined mappings from client-side to server-side drivers.

WARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.

1.You must add two new values to the registry key HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd. The new values are as follows:
Name: "PrinterMappingINFName"
Type: REG_SZ
Data: Name of the .inf file to which you want to redirect lookups.

Name: "PrinterMappingINFSection"
Type: REG_SZ
Data: Name of the section in the .inf file to which you want to redirect
lookups.
					
After adding the new registry values above, an .inf file must be created (step 2) or modified (step 3) to include the user-defined mappings from the client-side to server-side drivers. This is explained below.

2.Example of the format for creating a new inf file: [Version]
Signature="$CHICAGO$"

[Printers]
OEM Printer Driver Name = Windows 2000 Printer Driver Name

This file can be created with Notepad and needs to be saved with a .inf file extension. In this example, you would specify the .inf filename that you just created in the "PrinterMappingINFName" registry value and "Printers" in the "PrinterMappingINFSection" registry value.

3.You can also modify the existing Printupg.inf file in the Winnt\Inf folder (using Notepad) by adding the new mapping to the [Printer Driver Mapping] section. Use the format: OEM Printer Driver Name = Windows 2000 Printer Driver Name

The top section of the Printupg.inf file explains this format. If you modify the Printupg.inf file in this example, you would specify "Path to inf file\Printupg.inf" in the PrinterMappingINFName registry value and "Printer Driver Mapping" in the PrinterMappingINFSection registry value.

NOTE: Do not modify the original Ntprint.inf file. Doing so may break the file signing of the Ntprint.inf file.
For additional information about how to edit a print .inf file, click the article number below to view the article in the Microsoft Knowledge Base:
239088 (http://support.microsoft.com/kb/239088/EN-US/) Windows 2000 Terminal Services Server Logs Events 1111, 1105, and 1106
For additional information about creating .inf files, click the link:
http://msdn.microsoft.com/library/psdk/setupapi/setupapiovr_5cfn.htm (http://msdn.microsoft.com/library/psdk/setupapi/setupapiovr_5cfn.htm)

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.

MORE INFORMATION

For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:
249149 (http://support.microsoft.com/kb/249149/EN-US/) Installing Microsoft Windows 2000 and Windows 2000 Hotfixes

APPLIES TO
Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional Edition
Last Reviewed:4/22/2005
Keywords: kbBackup kbhowto kbHOWTOmaster KB306524 kbAudITPro

    Contact

   2004 Support at pcplans.com