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 Description of the Microsoft Windows Registry
RESOLUTION
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.
To install the printer, you must modify the registry:
- Start Registry Editor (Regedt32.exe).
- Locate and click the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers
- Set the following registry values:
Value Name: LoadTrustedDrivers
Data Type: REG_DWORD
Value: 0
Value Name: EnablePrinterSecurity
Data Type: REG_DWORD
Value: 0
- Quit Registry Editor.
- Restart the server.
After you make this change, administrators can install new printer drivers. After the drivers are installed, users can add the new printers based on these drivers.
NOTE: Before you install a new printer driver, make sure that it is compatible with Terminal Server. You may want to install and test the driver in a test environment before you install the driver on a production server.
After you have installed the drivers you need, you should consider setting the registry back to its original settings:
Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers
Value Name: LoadTrustedDrivers
Data Type: REG_DWORD
Value: 1
Value Name: EnablePrinterSecurity
Data Type: REG_DWORD
Value: 1
Restart the server after making these changes.
In summary, when
EnablePrinterSecurity is set to "
0", then the client looks for drivers in TrustedDriverPath\2 folder. When it is set to "
1", it looks for drivers under TrustedDriverPath.
Example:
Case 1: EnablePrinterSecurity is set to 0
------------------------------------------
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers]
"AddPrinterDrivers"=dword:00000000
"LoadTrustedDrivers"=dword:00000001
"EnablePrinterSecurity"=dword:00000000
"TrustedDriverPath"=REG_EXPAND_SZ:\\printserver\print$\W32%PROCESSOR_ARCHITECTURE%
In this case, the client pulls the driver from \\printserver\print$\w32x86\2
Make sure the drivers are in \\printserver\print$\w32x86\2
Case2: EnablePrinterSecurity is set to 1 (only admins can add the printer)
-------------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Providers\LanMan Print Services\Servers]
"AddPrinterDrivers"=dword:00000000
"LoadTrustedDrivers"=dword:00000001
"EnablePrinterSecurity"=dword:00000001
"TrustedDriverPath"=REG_EXPAND_SZ:\\printserver\print$\W32%PROCESSOR_ARCHITECTURE%
In this case, the client pulls the driver from \\printserver\print$\w32x86
Make sure the drivers are in \\printserver\print$\w32x86 (note that it doesn't look for "2" folder)