Archived from groups: microsoft.public.windowsnt.terminalserver.misc (
More info?)
Are you printing from the script or UI?
The classic scenario for printing from UI looks like this:
1. You install a printer on your client computer attached to LPT1: port
2. now you start the session with printing redirection enabled and the
printer is automatically redirected to the server. On your session this
printer name has two additional attributes in the name - your client name
and session number
3. You run Word on your session and want to print document
4. When you click print document from Word menu you will have a list of all
printers available on your session - you will see your redirected printer
from the client computer and all server printers if they were installed.
5. Select your client redirected printer and print doc.
6. The job is started on the server and send to the client side to your
local printer and finally the spooler on he client is taking care and
printing this document
The classic scenario when printing from the command line (or script) is
little more complicated since the \\tsclient\LPT1: is not supported. To
print to your redirected printer you can:
a) Made this printer def printer on the client. On the session this printer
become default automatically (if you do not change the def. settings). Now
you can use print command or print parameters like "wordpad /p aaa.txt" to
print document on default printer
b) Inside the session share the redirected printer and use net use lpt5:
\\TSserver\shareName and use LPT5: as a port for your documents to print.
The sharing and mapping are cached so you will have the same lpt port mapped
to the same printer on the reconnected session
--
Zenon Pilat (MS)
---
This posting is provided "AS IS" with no warranties, and confers no rights
---
<anonymous@discussions.microsoft.com> wrote in message
news:62c401c481ec$5b657fe0$a401280a@phx.gbl...
> I'm confused now. You say that I shouldn't change this
> setting. But I can't print unless I do! When I log in
> terminal services thinks my printer is on a different port
> to what it actually is. My pc doesn't even have a PRN3
> physically installed.
>
> So is my initial configuration wrong in some way?