1.1. The problem of printer drivers in an Terminal Server
Environment
A computer running Terminal Server may crash if multiple Terminal Server users
connect to a remote printer and print simultaneously. When a user connects to a
remote printer by using Printers in Control Panel or by browsing a print server, the
installed printer driver may be incompatible with Terminal Server.
The problem is caused by printer drivers that is unable to handle requests from
multiple users at the same time.
1.2. Commaxx AS
Commaxx were founded in 1992 and is a distributor of communication products and
server based computing. The communication products cover the interface between
the user and the operating system such as thin clients, terminals and I/O products.
Commaxx AS is the Norwegian distributor for Citrix Systems. Citrix is the
manufacturer of Citrix MetaFrame, an add-on to the Terminal Server from Microsoft.
See www.citrix.com for more information about MetaFrame.
Last edited 13/02/01page 3
OKI Printers in a Terminal Server environment
2. Installation of OKI printers
2.1. General information of printer drivers on Terminal Server
On “standard” NT4 network configuration containing NT4 Workstation and NT4
Servers, the administrator configures a print queue on the NT4 print server and adds
the printer driver to this print quere. When the users connects to this print queue,
the NT4 Workstation downloads the print driver from the print server and uses this
downloaded printer driver locally. In a Terminal Server environment this has been a
problem, see section 1.1.
In Service Pack 5 for Terminal Server, Microsoft added a feature that disables this
functionallity of printer driver distribution. See article Q238070 on Microsoft TechNet
for more information regarding this fix.
We strongly recommend the installation of Service Pack 5 (or newer) on Terminal
Servers. The reason for this is the functionallity described that will provide the
adminstrator a way to control wich printer drivers that is installed to the Terminal
Server Environment.
2.2. Installation of OKI printers on Terminal Server
The installation of the printer server and print queue are not described in this
document, the configuration of these components do not differ from a “standard”
NT4 Workstation/NT4 Server installation.
As described in article Q238070 on Microsoft Technet, there are 2 ways to install
printer drivers on a terminal server with SP5 installed:
Solution1:
Log on to the Terminal Server as an administrator, install the printer driver on a local
port and delete the printer afterwards. This will copy the required files to the correct
places on the Terminal Server and also update Registry to contain the newly added
printer driver.
Solution 2:
Log on to the Terminal Server and disable the functionality of printer driver security
as described in Q238070 and restart the server. Log on to the Terminal Server and
connect to the qrint queue that is configured with the desired driver, the Terminal
Server will download the driver and update the Registry for this new printer driver.
Open Registry again and set the values described in Q238070 back to its orginal
values to enable the printer driver security and then reboot the server again.
We reccomend solution 1, this is the easiest and most secure way to add new
printer drivers to a Terminal Server. This solution does not require changes in
registry or reboots. The administrator are in control of wich drivers that are added to
the server.
In solution 2, every user are able to connect to a print queue and download a driver,
this is not good.
Last edited 13/02/01page 4
OKI Printers in a Terminal Server environment
2.2.1. Installation of OKI C7200/C7400
These printers are installed through an inf-file that comes with the print drivers.
To add the driver to the termial server do the following:
• Log on to the console as an administrator.
• On the console of the Terminal Server, click Start->Settings->Printers.
• Click “Add printer”, create a printer on a local port, e.g. LPT1.
• On the list of available drivers, click “Have Disk” and browse to the location
of the driver to the printer you want to add a driver for (OKI C7x00).
After this procedure, the driver files are added to the server and registry is updated
to contain this new driver. Now you can delete the local printer and the drivers will
remain on the server.
When a user now connects to a print queue containing this driver, the local copy
will be used.
2.2.2. Installation of OKIPage 20/24
This driver is added using a setup program that comes with the driver. This setup
program must be executed on the terminal server to add the driver. Before installing
software to a Terminal Server, the session Administrator is using must be put in
“Install mode”.
To add the driver to the terminal server do the following:
• Log on to the console as an administrator
• Open a command prompt and execute the following command to set the
session in install mode: “CHANGE USER /INSTALL”
•Run the setup program for the printer driver as specified in the manual for
the printer. Create a local printer on e.g. LPT1, there is no need to share
the printer.
•Now the drivers are added to the server, and you can delete the newly
created local printer.
When a user now connects to a print queue containing this driver, the local copy
will be used.
2.3. Unstall OKI printer drivers
When a print driver is installed on a NT 4.0 server, there are added several files
under:
%systemroot%\system32\spool\drivers\w32x86
I addition to registry information under the following path:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environm
ents\
Windows NT x86\Drivers\Version-2
To remove an unwanted printer driver, these files and registry parameters must be
removed. How to do this is described in article Q162258 on Microsoft TechNet (see
appendix)
Last edited 13/02/01page 5
OKI Printers in a Terminal Server environment
2.3.1. OKI C7200(PCI)
Registry
The following keys are added to the registry during installaton of the driver:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\
Environments\Windows NT x86\Drivers\Version-2\OKI C7200 (PCL)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\
Environments\Windows NT x86\Print Processors\okiprint
Files
The following files are added/updated during installation of the driver: