How to use the "Connect client printers at Logon" Terminal Server feature.
(Last modified: 16Sep2002)
This document (10017377) is provided subject to the disclaimer at the end of this document.
goal
How to use the "Connect client printers at Logon" Terminal Server feature.
fact
Microsoft NT Terminal Server 4.0
MetaFrame 1.8
Novell Client 4.6.302 for Windows NT
symptom
Within User Manager for Domains on a Terminal Server, you edit the properties of a user and press the "Config" button. On the right hand side of the dialog there is a window called Client Devices. One of the properties in this window is "Connect client printers at Logon." If this box is checked, when the Terminal Server session starts the user in that session will have access to the printers on the Terminal Server as well as the printers on the on the client where the Terminal Server session was initiated.
A problem arises if you are issuing DOS captures to queues on a NetWare server. The problem exists when the client captures LPT1 and then the Terminal Server user captures LPT1 (i.e. they are both capturing different printers or queues to the same LPT port).
Error: "The parameter is incorrect" is seen when the user tries to print to an LPT port that is showing as having a client capture and a Terminal Server capture.
cause
This constitutes a naming conflict for DOS which only recognizes one LPT1 port. In a case like this, the client capture will take precedence, and print jobs sent to LPT1 from DOS will go to the queue defined in the client capture. The is evidenced by the order in which the NET USE command displays network resources.
For example, issuing a NET USE from the DOS prompt will display the following:
Status Local Remote Network
LPT1 \\Client\LPT1: Client Network
LPT1 \\NDS Tree Name\Context\Queue Name NetWare Services
This is not a problem for Windows printing. From a Windows perspective, you will see both printers in the Printers folder. You will be able to select the printer you wish to print to from within the Windows application, and the output will be sent to that printer.
fix
If you want the Terminal Server user to print to the Terminal Server capture instead of the client capture, do the following.
1. Make sure the PUBLIC directory is mapped as a search drive in the Terminal Server user's Novell login script.
2. Remove any capture commands from the Terminal Server user's Novell login script.
3. On the Terminal Server, enter User Manager for Domains and edit the Terminal Server user's properties. Click on the "Profile" button and type "LOGIN.BAT" in the Logon Script Name field.
4. Create a LOGIN.BAT file on the Terminal Server in the \\WTSRV\SYSTEM32\REPL\IMPORT\SCRIPTS directory. The file should contain the following lines:
net use lpt<number>: /delete
capture l=<lpt number desired> q=<queue name>
When the Terminal Server user logs in, the first line will delete the LPT that is in use by both the Client and the Terminal Server. The second line will capture the specified LPT port to only the NetWare service.
From this point on, any DOS application that needs to print to a redirected LPT port captured by the Terminal Server user can do so without the output being sent to the printer on the client.
document
Document Title: | How to use the "Connect client printers at Logon" Terminal Server feature. |
Document ID: | 10017377 |
Solution ID: | 1.0.26061958.2334820 |
Creation Date: | 24Sep1999 |
Modified Date: | 16Sep2002 |
Novell Product Class: | Management Products NetWare |
disclaimer
The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.